aboutsummaryrefslogtreecommitdiff
path: root/test/gtest_xml_test_utils.py
diff options
context:
space:
mode:
authorvladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2013-04-05 20:50:46 +0000
committervladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2013-04-05 20:50:46 +0000
commitdfbdf0bab51520595679a99710983daba6fc18eb (patch)
treeee51703ea3b410ad57ece30d0ed8864d8c104acf /test/gtest_xml_test_utils.py
parentf2ac1ec8018f164081b8c002bcfbd88a4b52f65e (diff)
downloadgtest-dfbdf0bab51520595679a99710983daba6fc18eb.tar.gz
Implements support for calling Test::RecordProperty() outside of a test.
git-svn-id: http://googletest.googlecode.com/svn/trunk@648 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'test/gtest_xml_test_utils.py')
-rwxr-xr-xtest/gtest_xml_test_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gtest_xml_test_utils.py b/test/gtest_xml_test_utils.py
index 0e5a108..35458f8 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)