예제 #1
0
파일: tests.py 프로젝트: thoas/nydus
 def test_groupable_delete_commands(self):
     command = EventualCommand('delete', ['foo'])
     other = EventualCommand('delete', ['bar'])
     self.assertEqual(can_group_commands(command, other), True)
예제 #2
0
파일: tests.py 프로젝트: thoas/nydus
 def test_ungroupable_delete_commands(self):
     command = EventualCommand('delete', ['foo'], {'timeout': 1})
     other = EventualCommand('delete', ['bar'], {'timeout': 2})
     self.assertEqual(can_group_commands(command, other), False)
예제 #3
0
파일: tests.py 프로젝트: thoas/nydus
 def test_groupable_set_commands(self):
     command = EventualCommand('set', ['foo', 1])
     other = EventualCommand('set', ['bar', 2])
     self.assertEqual(can_group_commands(command, other), True)
예제 #4
0
파일: tests.py 프로젝트: thoas/nydus
 def test_ungroupable_set_commands(self):
     command = EventualCommand('set', ['foo', 1], {'timeout': 1})
     other = EventualCommand('set', ['bar', 2], {'timeout': 2})
     self.assertEqual(can_group_commands(command, other), False)
예제 #5
0
파일: tests.py 프로젝트: jusbrasil/nydus
 def test_ungroupable_delete_commands(self):
     command = EventualCommand('delete', ['foo'], {'timeout': 1})
     other = EventualCommand('delete', ['bar'], {'timeout': 2})
     self.assertEqual(can_group_commands(command, other), False)
예제 #6
0
파일: tests.py 프로젝트: jusbrasil/nydus
 def test_groupable_delete_commands(self):
     command = EventualCommand('delete', ['foo'])
     other = EventualCommand('delete', ['bar'])
     self.assertEqual(can_group_commands(command, other), True)
예제 #7
0
파일: tests.py 프로젝트: jusbrasil/nydus
 def test_ungroupable_set_commands(self):
     command = EventualCommand('set', ['foo', 1], {'timeout': 1})
     other = EventualCommand('set', ['bar', 2], {'timeout': 2})
     self.assertEqual(can_group_commands(command, other), False)
예제 #8
0
파일: tests.py 프로젝트: jusbrasil/nydus
 def test_groupable_set_commands(self):
     command = EventualCommand('set', ['foo', 1])
     other = EventualCommand('set', ['bar', 2])
     self.assertEqual(can_group_commands(command, other), True)
예제 #9
0
파일: tests.py 프로젝트: tupy/nydus
 def test_groupable_get_commands(self):
     command = EventualCommand('get', ['foo'])
     other = EventualCommand('get', ['bar'])
     self.assertEquals(can_group_commands(command, other), True)