示例#1
0
文件: tests.py 项目: thoas/nydus
 def test_delete_excludes_first_arg(self):
     command = EventualCommand('delete', ['foo', 1])
     result = grouped_args_for_command(command)
     self.assertEqual(result, [1])
示例#2
0
文件: tests.py 项目: jusbrasil/nydus
 def test_delete_excludes_first_arg(self):
     command = EventualCommand('delete', ['foo', 1])
     result = grouped_args_for_command(command)
     self.assertEqual(result, [1])
示例#3
0
文件: tests.py 项目: thoas/nydus
 def test_set_excludes_first_two_args(self):
     command = EventualCommand('set', ['foo', 1, 'biz'])
     result = grouped_args_for_command(command)
     self.assertEqual(result, ['biz'])
示例#4
0
文件: tests.py 项目: jusbrasil/nydus
 def test_set_excludes_first_two_args(self):
     command = EventualCommand('set', ['foo', 1, 'biz'])
     result = grouped_args_for_command(command)
     self.assertEqual(result, ['biz'])