def test_non_EarthLocation():
 class EarthLocation2(EarthLocation, ):
  pass
 EarthLocation2._get_site_registry(force_builtin=True)
 el2 = EarthLocation2.of_site(u'greenwich')
 assert (type(el2) is EarthLocation2)
 assert (el2.info.name == u'Royal Observatory Greenwich')

def test_non_EarthLocation ( ) : class EarthLocation2 ( EarthLocation , ) : pass EarthLocation2 . _get_site_registry ( force_builtin = True ) el2 = EarthLocation2 . of_site ( u'greenwich' ) assert ( type ( el2 ) is EarthLocation2 ) assert ( el2 . info . name == u'Royal Observatory Greenwich' )
a regression test for a typo bug pointed out at the bottom of URL .