Exemplo n.º 1
0
 def test_waifu_series(self):
     attrs = {
         'bot': bot,
         'is_patreon': True,
         'screen_name': "TestUser",
         'twitter_id': "123",
         'command': "waifu",
         'message': "waifu bleach",
         'raw_data': {}
     }
     ctx = functions.UserContext(**attrs)
     r, m = commands.waifu.callback(ctx)
     print(r, m)
     self.assertTrue("Your Waifu is" in r and "Bleach" in r)
     self.assertTrue("images" in m)
Exemplo n.º 2
0
 def test_random_list_shipgirl_aoki(self):
     attrs = {
         'bot': bot,
         'is_patreon': True,
         'screen_name': "TestUser",
         'twitter_id': "123",
         'command': "shipgirl",
         'message': "shipgirl aoki",
         'raw_data': {}
     }
     ctx = functions.UserContext(**attrs)
     r, m = commands.random_list.callback(ctx)
     print(r, m)
     self.assertTrue("Your Shipgirl is" in r)
     self.assertTrue("images" in m)
Exemplo n.º 3
0
 def test_random_list_idol_love_live(self):
     attrs = {
         'bot': bot,
         'is_patreon': True,
         'screen_name': "TestUser",
         'twitter_id': "123",
         'command': "idol",
         'message': "idol love live",
         'raw_data': {}
     }
     ctx = functions.UserContext(**attrs)
     r, m = commands.random_list.callback(ctx)
     print(r, m)
     self.assertTrue("Your Idol is" in r and "Love Live" in r)
     self.assertTrue("images" in m)