def test_delete_excludes_first_arg(self): command = EventualCommand('delete', ['foo', 1]) result = grouped_args_for_command(command) self.assertEqual(result, [1])
def test_set_excludes_first_two_args(self): command = EventualCommand('set', ['foo', 1, 'biz']) result = grouped_args_for_command(command) self.assertEqual(result, ['biz'])