示例#1
0
 def test_valid_nickname(self):
     res = get_dungeon_timers('wcm')
     self.assertEqual(
         res, 'Waycrest Manor timers:\n'
         '+1: 10:00\n'
         '+2: 12:30\n'
         '+3: 15:00')
示例#2
0
 def test_no_name(self):
     res = get_dungeon_timers()
     self.assertEqual(
         res,
         'You must enter a dungeon name. Try `!dungeons` to see dungeon names.'
     )
示例#3
0
 def test_invalid_name(self):
     res = get_dungeon_timers('foo')
     self.assertEqual(
         res, 'I\'m sorry, I didn\'t understand the dungeon `foo`. '
         'Try `!dungeons` to see dungeon names.')
示例#4
0
文件: bot.py 项目: Hovspian/keystones
async def get_dungeon_timers(ctx, *dungeon_name):
    await ctx.send(command_validation.get_dungeon_timers(*dungeon_name))