diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2013-04-05 20:50:46 +0000 |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2013-04-05 20:50:46 +0000 |
commit | f5fa71f728ce77c5d5c1a940a9bd8bb1d64c9f78 (patch) | |
tree | ee51703ea3b410ad57ece30d0ed8864d8c104acf /test/gtest_xml_test_utils.py | |
parent | 5f18b68bfc96e69f8b1e5b7b5449f4890c1a2016 (diff) | |
download | googletest-f5fa71f728ce77c5d5c1a940a9bd8bb1d64c9f78.tar.gz googletest-f5fa71f728ce77c5d5c1a940a9bd8bb1d64c9f78.tar.bz2 googletest-f5fa71f728ce77c5d5c1a940a9bd8bb1d64c9f78.zip |
Implements support for calling Test::RecordProperty() outside of a test.
Diffstat (limited to 'test/gtest_xml_test_utils.py')
-rwxr-xr-x | test/gtest_xml_test_utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gtest_xml_test_utils.py b/test/gtest_xml_test_utils.py index 0e5a1089..35458f88 100755 --- a/test/gtest_xml_test_utils.py +++ b/test/gtest_xml_test_utils.py @@ -80,7 +80,9 @@ class GTestXMLTestCase(gtest_test_utils.TestCase): actual_attributes = actual_node .attributes self.assertEquals( expected_attributes.length, actual_attributes.length, - 'attribute numbers differ in element ' + actual_node.tagName) + 'attribute numbers differ in element %s:\nExpected: %r\nActual: %r' % ( + actual_node.tagName, expected_attributes.keys(), + actual_attributes.keys())) for i in range(expected_attributes.length): expected_attr = expected_attributes.item(i) actual_attr = actual_attributes.get(expected_attr.name) |