Example #1
0
 def test_dictionary_fail(self):
     with raises(AssertionError) as exc:
         types.dictionary([])
     assert exc.value.args[0] == 'not of type dictionary'
Example #2
0
 def test_dictionary_pass(self):
     assert types.dictionary({}) is None