def test_adjust_with_no_mapping_defined(self): attr_conv = AttributeConverter() attr_conv.adjust() assert attr_conv._fro is None and attr_conv._to is None
def test_adjust_with_only_to_defined(self): attr_conv = AttributeConverter() attr_conv._to = {"id1": "name1", "id2": "name2"} attr_conv.adjust() assert attr_conv._fro is not None