Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
 def setUp(self):
     self.store = Store()
     self.factoryDict = FactoryDict(self.store)
     addToStore(self.store, "test", name)
Пример #4
0
 def setUp(self):
     self.store = Store()
     self.factoryDict = FactoryDict(self.store)
     addToStore(self.store, "test", name)