'Regression test for #1072
https://github.com/encode/django-rest-framework/issues/1072'

def test_foreign_key_with_empty(self):

    serializer = NullableForeignKeySourceSerializer()
    assert (serializer.data[u'target'] is None)
