예제 #1
0
 def test_add_operation_class_returned_for_operation_add_(self):
     patch = Patch([])
     add_operation_class = patch.get_operation_class('add')
     self.assertEqual(add_operation_class, AddOperation)
예제 #2
0
 def test_add_operation_class_returned_for_operation_add_(self):
     patch = Patch([])
     add_operation_class = patch.get_operation_class('add')
     self.assertEqual(add_operation_class, AddOperation)
예제 #3
0
 def test_patch_exception_raised_when_operation_is_unsupported(self):
     patch = Patch([])
     with self.assertRaises(PatchException):
         patch.get_operation_class('mock')
예제 #4
0
 def test_patch_exception_raised_when_operation_is_unsupported(self):
     patch = Patch([])
     with self.assertRaises(PatchException):
         patch.get_operation_class('mock')