def _testInsertion(self, _deleteDomainDirectory=False): """ Helper method for inserting a user store. """ if _deleteDomainDirectory: self.store.filesdir.child('account').child(self.domain).remove() userbase.insertUserStore(self.store, self.destdir)
def testInsertion(self, _deleteDomainDirectory=False): self.testExtraction() if _deleteDomainDirectory: self.store.filesdir.child('account').child('localhost').remove() userbase.insertUserStore(self.store, self.destdir) insertedStore = self.ls.accountByAddress(u'testuser', u'localhost').avatars.open() self.assertEquals( insertedStore.findUnique(ThingThatMovesAround).superValue, self.IMPORTANT_VALUE)
def postOptions(self): userbase.insertUserStore( self.parent.getStore(), filepath.FilePath(self.decodeCommandLine(self['userstore'])))
def postOptions(self): userbase.insertUserStore(self.parent.getStore(), filepath.FilePath(self.decodeCommandLine(self['userstore'])))