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