Пример #1
0
 def test_boolean_fail(self):
     with raises(AssertionError) as exc:
         types.boolean('a string')
     assert exc.value.args[0] == 'not of type boolean'
Пример #2
0
 def test_boolean_pass(self):
     assert types.boolean(False) is None