def test_updateInStore(self): """The addToStore function will update a peristed factory's name, if a persisted factory with the passed identifier already exists. """ addToStore(self.store, "test", otherName) self.checkFactory(self.factoryDict["test"], cls=OtherFactory)
def setUp(self): self.store = Store() self.factoryDict = FactoryDict(self.store) addToStore(self.store, "test", name)