Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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