Skip to content

Commit

Permalink
selfcheck that bad_value is actually bad
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolerd committed Aug 3, 2015
1 parent ece9978 commit e24c564
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/tests/test_type_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ def test_positive_bind(self):

def test_negative_bind(self):
bad_value = 0
# selfcheck:
self.assertNotIn(
bad_value,
self.testing_typeenum._enum.__members__.values(),
msg="Test selfcheck failed. Please update the test",
)
with self.assertRaises(TypeError):
self.testing_typeenum.process_bind_param(
bad_value,
Expand Down

0 comments on commit e24c564

Please sign in to comment.