Example #1
0
 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")
Example #2
0
 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")