Skip to content

Commit

Permalink
adding sublcassing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Maxwell committed May 18, 2021
1 parent 0231502 commit 011237b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/crs/test_crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1475,3 +1475,10 @@ def test_to_3d(crs_input):
def test_to_3d__name():
crs_3d = CRS("EPSG:2056").to_3d(name="TEST")
assert crs_3d.name == "TEST"

def test_subclassing():
class myCRS(CRS):
def foo_method(self):
return 7

assert myCRS.from_epsg(4326).foo_method() == 7

0 comments on commit 011237b

Please sign in to comment.