Example #1
0
File: tests.py Project: thoas/nydus
 def test_delete_excludes_first_arg(self):
     command = EventualCommand('delete', ['foo', 1])
     result = grouped_args_for_command(command)
     self.assertEqual(result, [1])
Example #2
0
 def test_delete_excludes_first_arg(self):
     command = EventualCommand('delete', ['foo', 1])
     result = grouped_args_for_command(command)
     self.assertEqual(result, [1])
Example #3
0
File: tests.py Project: 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'])
Example #4
0
 def test_set_excludes_first_two_args(self):
     command = EventualCommand('set', ['foo', 1, 'biz'])
     result = grouped_args_for_command(command)
     self.assertEqual(result, ['biz'])