def test_deep_nested__failure(self): A = self._get_A() a = A({"b": {"c": {"d": {"F": {"f": {"left": "xxxx", "right": "yyyy"}}}}}}) assert a.validate() is not True assert a.result is not True from asobibi.langhelpers import flatten_dict assert list(flatten_dict(a.errors).keys()) == ["b.c.d.e"]
def _callFUT(self, *args, **kwargs): from asobibi.langhelpers import flatten_dict return flatten_dict(*args, **kwargs)