def test_expand(self): """expand(d)""" res = mapping.expand(self.test_dict_E) nt.eq_(res, self.test_dict_F) res = mapping.expand(self.test_dict_D) nt.eq_(res, self.test_dict_F) res = mapping.expand(self.test_dict_F) nt.eq_(res, self.test_dict_F)
def test_expand_and_flatten(self): """flatten(expand(d)) == d""" res = mapping.flatten(mapping.expand(self.test_dict_E)) nt.eq_(res, self.test_dict_E)
def test_flatten_and_expand(self): """expand(flatten(d)) == d""" res = mapping.expand(mapping.flatten(self.test_dict_F)) nt.eq_(res, self.test_dict_F)