示例#1
0
	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)
示例#2
0
	def test_load_config(self):
		tbNiceBot.load_config('config_test')
		self.assertEqual(settings.CONFIG['filters'][0].encode('utf8'), '^◆◇$')