Skip to content

Commit

Permalink
Improve NoContent tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dharvey-consbio committed Oct 31, 2016
1 parent 8bab5b4 commit 04b351c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gis_metadata/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def test_template_conversion_bad_roots(self):

bad_root_format = 'Bad root test failed for {0} with {1}'

for bad_root in (None, u'', StringIO(u''), {}):
for bad_root in (None, u'', StringIO(u''), {}, '<?xml version="1.0" encoding="UTF-8"?>\n'):
with self.assertRaises(NoContent, msg=bad_root_format.format('get_parsed_content', bad_root)):
get_parsed_content(bad_root)
with self.assertRaises(NoContent, msg=bad_root_format.format('get_parsed_content', bad_root)):
Expand Down

0 comments on commit 04b351c

Please sign in to comment.