def test_is_topic_content_match(self): tbNiceBot.load_config('config_test') board_url = 'http://tieba.baidu.com/p/1549379482' self.assertEqual(tbNiceBot.is_topic_content_match(board_url), True)
def test_load_config(self): tbNiceBot.load_config('config_test') self.assertEqual(settings.CONFIG['filters'][0].encode('utf8'), '^◆◇$')