def test_getsource(self): # register the source & retrieve it from the registry registry.register(self.source, name="testsource", data_class=sncosmo.Source) m = sncosmo.get_source("testsource")