assert_job_summary_equal

safir.testing.uws.assert_job_summary_equal(job_summary_type, seen, expected)

Assert that two job XML documents are equal.

The comparison is done by converting both to a JobSummary object qualified with the parameter type used for tests.

Parameters:
  • job_summary_type (type[JobSummary]) – Type of XML job summary specialized for the XML model used for job parameters. For example, JobSummary[SomeXmlParameters].

  • seen (str) – XML returned by the application under test.

  • expected (str) – Expected XML.

Return type:

None