def test2(self):
        # add a tweet to the source_table
        self.insert_tweet(tweet1)
        self.check_we_have_only_n_record(self.source_table, 1)
        ## get all tweets from source_table, via annotation, into
        ## destination_table
        self.ner_api.annotate_all_messages()

        sql = "SELECT COUNT(*) FROM {}".format(self.destination_table)
        self.cursor.execute(sql)
        all_rows = self.cursor.fetchall()
        #from nose.tools import set_trace; set_trace()
        count = all_rows[0][0]
        self.assertEqual(count, 1, "Check we have 1 new record (we have {})".format(count))

        self.insert_tweet(tweet2)
        self.insert_tweet(tweet3)
        self.check_we_have_only_n_record(self.source_table, 3)
        ## get all tweets from source_table, via annotation, into
        ## destination_table
        self.ner_api.annotate_all_messages()

        self.check_we_have_only_n_record(self.destination_table, 3)
Check that annotate_all_messages does the same job as we've just performed in test1
dataset/ETHPy150Open ianozsvald/social_media_brand_disambiguator/ner_apis/test_ner_api_caller.py/Test.test2