Ticket #16134: 16134_fix2.diff

File 16134_fix2.diff, 702 bytes (added by Hong Shuning, 12 years ago)
  • tests/regressiontests/model_fields/tests.py

    diff --git a/tests/regressiontests/model_fields/tests.py b/tests/regressiontests/model_fields/tests.py
    index a49894e..fed7dbe 100644
    a b from .imagefield import (ImageFieldTests, ImageFieldTwoDimensionsTests,  
    2222
    2323
    2424class BasicFieldTests(test.TestCase):
     25    def test_field_can_compare_null(self):
     26        for field in VerboseNameField._meta.fields:
     27            self.assertNotEqual(field, None)
     28            self.assertNotEqual(cmp(field,None), 0)
     29       
    2530    def test_show_hidden_initial(self):
    2631        """
    2732        Regression test for #12913. Make sure fields with choices respect
Back to Top