Python 3 support (#212)
This commit is contained in:
parent
9ae30ba95a
commit
79d07b53e0
|
@ -104,14 +104,14 @@ class XmlResultTestGeneration(unittest.TestCase):
|
|||
def testGenerateError(self):
|
||||
error = junitxml.TestError('error_type', 'error_text')
|
||||
error_str = error.xml()
|
||||
self.assertEquals('''<error type="error_type"><![CDATA[
|
||||
self.assertEquals(b'''<error type="error_type"><![CDATA[
|
||||
error_text
|
||||
]]></error>''', error_str)
|
||||
|
||||
def testGenerateFailure(self):
|
||||
failure = junitxml.TestFailure('failure_type', 'failure_text')
|
||||
failure_str = failure.xml()
|
||||
self.assertEquals('''<failure type="failure_type"><![CDATA[
|
||||
self.assertEquals(b'''<failure type="failure_type"><![CDATA[
|
||||
failure_text
|
||||
]]></failure>''', failure_str)
|
||||
|
||||
|
@ -124,7 +124,7 @@ failure_text
|
|||
testcase.add_error(error)
|
||||
testcase.add_failure(failure)
|
||||
testcase_str = testcase.xml()
|
||||
self.assertEquals('''<testcase classname="" name="test_case" time="0.0"><failure type="failure_type"><![CDATA[
|
||||
self.assertEquals(b'''<testcase classname="" name="test_case" time="0.0"><failure type="failure_type"><![CDATA[
|
||||
failure_text
|
||||
]]></failure><error type="error_type"><![CDATA[
|
||||
error_text
|
||||
|
|
Loading…
Reference in New Issue