def testAlreadyRegistered(self): inject.create() self.assertRaises(InjectorAlreadyRegistered, inject.create)
def testCreate(self): '''Injector.create should instantiate and register and injector.''' injector = inject.create() self.assertTrue(injector.is_registered())