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