def METHOD_NAME(self):
    order = mock.Mock()
    order.info = {"hello": "world"}
    with self.assertRaises(ControlError):
        self.control._on_error(order, "test")
    order.violation.assert_called_with("Order has violated: None Error: test")