'Regression tests for #10406
If there\'s a one-to-one link between a child model and the parent and
no explicit pk declared, we can use the one-to-one link as the pk on
the child.'

def test_use_explicit_o2o_to_parent_as_pk(self):

    self.assertEqual(ParkingLot2._meta.pk.name, 'parent')
    self.assertEqual(ParkingLot3._meta.pk.name, 'primary_key')
    self.assertEqual(ParkingLot3._meta.get_ancestor_link(Place).name, 'parent')
