'Assert that a model with a onetoone field that is the primary key is
not treated like a derived model'

def test_onetoone_primary_key_model_fields_as_expected(self):

    parent = ParentModel.objects.create(name1=u'parent    name')
    associate = AssociatedModel.objects.create(name=u'hello', ref=parent)
    serializer = AssociatedModelSerializer(associate)
    assert (set(serializer.data.keys()) == set([u'name', u'ref']))
