Skip to content

Commit

Permalink
Update test_config.py
Browse files Browse the repository at this point in the history
Add check to functionality of __str__ (not really required only for coverage purpose ;))
  • Loading branch information
copyninja committed Jun 6, 2014
1 parent 0a05986 commit a93d218
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions silpa/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,10 @@ def test_config_error_handling(self):
e = ic.exception
self.assertEqual(self.option, e.option)
self.assertEqual(self.section, e.section)

if self.option:
error = e.__str__()
self.assertIn(self.option, error)
self.assertIn(self.section, error)
else:
self.assertIn(self.section, e.__str__())

0 comments on commit a93d218

Please sign in to comment.