Exemple #1
0
 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"])
Exemple #2
0
 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"])
Exemple #3
0
 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"])
Exemple #4
0
 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"])
Exemple #5
0
 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'])
Exemple #7
0
 def _accountNames(self):
     return getMessageSources(self.inbox.store)
Exemple #8
0
 def _accountNames(self):
     return getMessageSources(self.inbox.store)