def test_validate_request_state(self):
        xsd_path = "../Data/Schemas/Models/Common/request_state.xsd"

        with self.assertRaises(xmlschema.XMLSchemaChildrenValidationError):
            xml_validate("XMLValidateTestData/empty_is_error.xml", xsd_path)

        xml_validate("XMLValidateTestData/only_is_error.xml", xsd_path)

        with self.assertRaises(xmlschema.XMLSchemaChildrenValidationError):
            xml_validate("XMLValidateTestData/with_zero_errors.xml", xsd_path)

        xml_validate("XMLValidateTestData/with_errors.xml", xsd_path)
 def test_validate_put_movement_response(self):
     xsd_path = "../Data/Schemas/Responses/Common/put_movement_response.xsd"
     xml_validate("XMLValidateTestData/Common/put_movement_response.xml",
                  xsd_path)
 def test_validate_put_outbound_registry_response(self):
     xsd_path = "../Data/Schemas/Responses/Common/put_outbound_registry_response.xsd"
     xml_validate(
         "XMLValidateTestData/Common/put_outbound_registry_response.xml",
         xsd_path)
 def test_validate_get_outbound_status_history_response(self):
     xsd_path = "../Data/Schemas/Responses/Common/get_outbound_status_history_response.xsd"
     xml_validate(
         "XMLValidateTestData/Common/get_outbound_status_history_response.xml",
         xsd_path)
 def test_validate_get_outbound_response(self):
     xsd_path = "../Data/Schemas/Responses/Delivery/get_outbound_response.xsd"
     xml_validate("XMLValidateTestData/Delivery/get_outbound_response.xml",
                  xsd_path)
 def test_validate_cancel_order_response(self):
     xsd_path = "../Data/Schemas/Responses/Delivery/cancel_order_response.xsd"
     xml_validate("XMLValidateTestData/Delivery/cancel_order_response.xml",
                  xsd_path)
 def test_validate_put_movement_registry_response(self):
     xsd_path = "../Data/Schemas/Responses/Delivery/put_movement_registry_response.xsd"
     xml_validate(
         "XMLValidateTestData/Delivery/put_movement_registry_response.xml",
         xsd_path)