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