def test_distinctSources(self): """ Test that any particular message source is only returned once from L{getMessageSources}. """ s = Store() _addMessageSource(s, u"a") _addMessageSource(s, u"a") self.assertEquals(list(getMessageSources(s)), [u"a"])
def test_sourceTracking(self): """ Test that message sources added with L{addMessageSource} can be retrieved with L{getMessageSources} in alphabetical order. """ s = Store() _addMessageSource(s, u"one") _addMessageSource(s, u"two") _addMessageSource(s, u"three") self.assertEquals(list(getMessageSources(s)), [u"one", u"three", u"two"])
def test_sourceTracking(self): """ Test that message sources added with L{addMessageSource} can be retrieved with L{getMessageSources} in alphabetical order. """ s = Store() _addMessageSource(s, u"one") _addMessageSource(s, u"two") _addMessageSource(s, u"three") self.assertEquals( list(getMessageSources(s)), [u"one", u"three", u"two"])
def test_upgrade(self): inbox = self.store.findUnique(Inbox) self.assertEquals(list(getMessageSources(self.store)), [u'source one', u'source two'])
def test_upgrade(self): inbox = self.store.findUnique(Inbox) self.assertEquals( list(getMessageSources(self.store)), [u'source one', u'source two'])
def _accountNames(self): return getMessageSources(self.inbox.store)