Example #1
0
 def test_rejecting_operations_for_delete(self):
     rejecting_operations = coordinator.get_rejecting_operations(
         dispatch_constants.RESOURCE_DELETE_OPERATION)
     self.assertFalse(dispatch_constants.RESOURCE_CREATE_OPERATION in
                      rejecting_operations)
     self.assertFalse(
         dispatch_constants.RESOURCE_READ_OPERATION in rejecting_operations)
     self.assertFalse(dispatch_constants.RESOURCE_UPDATE_OPERATION in
                      rejecting_operations)
     self.assertTrue(dispatch_constants.RESOURCE_DELETE_OPERATION in
                     rejecting_operations)
 def test_rejecting_operations_for_delete(self):
     rejecting_operations = coordinator.get_rejecting_operations(dispatch_constants.RESOURCE_DELETE_OPERATION)
     self.assertFalse(dispatch_constants.RESOURCE_CREATE_OPERATION in rejecting_operations)
     self.assertFalse(dispatch_constants.RESOURCE_READ_OPERATION in rejecting_operations)
     self.assertFalse(dispatch_constants.RESOURCE_UPDATE_OPERATION in rejecting_operations)
     self.assertTrue(dispatch_constants.RESOURCE_DELETE_OPERATION in rejecting_operations)