Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
check xml as binary string
Browse files Browse the repository at this point in the history
  • Loading branch information
ruleant committed Nov 25, 2015
1 parent 9ce9cf6 commit 4ad6da2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions buildtimetrend/test/buildjob_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,11 @@ def test_to_xml_string(self):
self.build.add_property('property2', 3)
# test xml string output
self.assertEquals(
'<build property1="2" property2="3">\n'
' <stages>\n'
' <stage duration="2.0" name="stage1"/>\n'
' <stage duration="5.0" name="stage2"/>\n'
' <stage duration="10.0" name="stage3"/>\n'
' </stages>\n'
'</build>\n',
b'<build property1="2" property2="3">\n'
b' <stages>\n'
b' <stage duration="2.0" name="stage1"/>\n'
b' <stage duration="5.0" name="stage2"/>\n'
b' <stage duration="10.0" name="stage3"/>\n'
b' </stages>\n'
b'</build>\n',
self.build.to_xml_string())

0 comments on commit 4ad6da2

Please sign in to comment.