Ticket #7899: 7899_tests.1.diff

File 7899_tests.1.diff, 724 bytes (added by Brian Rosner, 16 years ago)

failing tests

  • tests/modeltests/model_inheritance/models.py

     
    116116    def __unicode__(self):
    117117        return u"%s the parking lot" % self.name
    118118
     119class Product(models.Model):
     120    supplier = models.ForeignKey(Supplier)
     121
    119122__test__ = {'API_TESTS':"""
    120123# The Student and Worker models both have 'name' and 'age' fields on them and
    121124# inherit the __unicode__() method, just as with normal Python subclassing.
     
    3093123
    310313>>> settings.DEBUG = False
    311314
     315>>> Product.objects.filter(supplier=Supplier())
     316[]
     317
    312318"""}
Back to Top