예제 #1
0
 def test_inbox_find_threads_not_strict(self):
     inbox = Inbox(INBOX_SOUP)
     sought_user = "******"
     for thread in inbox.find_threads([sought_user], strict=False):
         self.assertTrue(
             set([sought_user, inbox.user]).issubset(set(thread.participants))
         )
예제 #2
0
 def test_inbox_find_threads_strict(self):
     inbox = Inbox(INBOX_SOUP)
     sought_user = "******"
     for thread in inbox.find_threads([sought_user]):
         self.assertEqual(
             set(thread.participants),
             set([sought_user, inbox.user])
         )