def _assert_suite(self, expected_report, suite):
name = suite.get(JUnitDialect.NAME)<EOL>self.assertIsNotNone(name)<EOL>self.assertIn(name, expected_report)<EOL>expected_suite = expected_report[name]<EOL>if "<STR_LIT>" in expected_suite:<EOL><INDENT>self.assertEqual(expected_suite["<STR_LIT>"],<EOL>suite.get(JUnitDialect.TEST_COUNT))<EOL><DEDENT>if "<STR_LIT>" in expected_suite:<EOL><INDENT>self.assertEqual(expected_suite["<STR_LIT>"],<EOL>suite.get(JUnitDialect.FAILURE_COUNT))<EOL><DEDENT>if "<STR_LIT>" in expected_suite:<EOL><INDENT>self.assertEqual(expected_suite["<STR_LIT>"],<EOL>suite.get(JUnitDialect.ERROR_COUNT))<EOL><DEDENT>if "<STR_LIT>" in expected_suite:<EOL><INDENT>self.assertEqual(expected_suite["<STR_LIT>"],<EOL>suite.get(JUnitDialect.SKIPPED_COUNT))<EOL><DEDENT>self.assertEqual(len(expected_suite["<STR_LIT>"]), len(suite))<EOL>for each_test in suite:<EOL><INDENT>self._assert_test(expected_suite["<STR_LIT>"], each_test)<EOL><DEDENT>
Verify that the given 'suite' matches one in the expected test report.