Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
 def postOptions(self):
     userbase.insertUserStore(
         self.parent.getStore(),
         filepath.FilePath(self.decodeCommandLine(self['userstore'])))
Ejemplo n.º 4
0
 def postOptions(self):
     userbase.insertUserStore(self.parent.getStore(),
                              filepath.FilePath(self.decodeCommandLine(self['userstore'])))