

def test_no_source_on_child(self):
    with pytest.raises(AssertionError) as exc_info:
        IntegerRangeField(child=serializers.IntegerField(source='other'))
    assert (str(self.value) == 'The `source` argument is not meaningful when applied to a `child=` field. Remove `source=` from the field declaration.')

dataset/ETHPy150Open Hipo/drf-extra-fields/tests/test_fields.py TestIntegerRangeField.test_no_source_on_child/VarMisuse@41/55 `exc_info`->`self`