def test_interface_ip(self):
        with patch.object(salt.utils.network, 'interface_ip', return_value={}):
            self.assertDictEqual(network.interface_ip('iface'), {})
Here we check if the default value is an object and return the to_field if so.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/network_test.py/NetworkTestCase.test_interface_ip--crossover with--dataset/ETHPy150Open django/django/django/db/models/fields/related.py/ForeignKey.get_default