def testCheckingReturnStatus(self):
        generator = checking.generator([self.status] * 2, return_status=True)
        assert isinstance(next(generator), tweepy.Status)

        generator = checking.generator([self.status] * 2, return_status=False)
        self.assertTrue(isinstance(next(generator), basestring))

        generator = checking.generator(self.archive, return_status=True)
        self.assertTrue(isinstance(next(generator), dict))
    def testCheckingReturnStatus(self):
        generator = checking.generator([self.status] * 2, return_status=True)
        assert isinstance(next(generator), tweepy.Status)

        generator = checking.generator([self.status] * 2, return_status=False)
        self.assertTrue(isinstance(next(generator), basestring))

        generator = checking.generator(self.archive, return_status=True)
        self.assertTrue(isinstance(next(generator), dict))
 def test_reply_filtering_txtfile(self):
     generator = checking.generator(self.txt, txt=1, no_replies=1)
     self.assertEqual(len(list(generator)), 99)
 def test_rt_filtering_archive(self):
     generator = checking.generator(self.archive, no_retweets=1)
     lis = list(generator)
     self.assertEqual(len(lis), 98)
 def test_rt_filtering(self):
     generator = checking.generator(self.txt, txt=1, no_retweets=1)
     self.assertEqual(len(list(generator)), 99)
 def test_reply_filtering_archive(self):
     generator = checking.generator(self.archive, no_replies=1)
     self.assertEqual(len(list(generator)), 98)
 def test_rt_filtering_archive(self):
     generator = checking.generator(self.archive, no_retweets=1)
     lis = list(generator)
     self.assertEqual(len(lis), 98)
 def test_rt_filtering(self):
     generator = checking.generator(self.txt, txt=1, no_retweets=1)
     self.assertEqual(len(list(generator)), 99)
 def test_reply_filtering_archive(self):
     generator = checking.generator(self.archive, no_replies=1)
     self.assertEqual(len(list(generator)), 98)
 def test_reply_filtering_txtfile(self):
     generator = checking.generator(self.txt, txt=1, no_replies=1)
     self.assertEqual(len(list(generator)), 99)