Fixed some problems with Harro's test.
authorMichael Elsdörfer <michael@elsdoerfer.com>
Wed, 13 Oct 2010 16:56:48 +0000 (18:56 +0200)
committerMichael Elsdörfer <michael@elsdoerfer.com>
Wed, 13 Oct 2010 16:56:48 +0000 (18:56 +0200)
tests/test_models.py

index c87b142b42258c8c8ce7d57cdef411497213aa69..21d5bac52a30007c1d6f3570bd9728a28af7b0b5 100644 (file)
@@ -103,7 +103,7 @@ class TestDeclaration:
                 columns = ('system', 'population', 'foo', 'tld',)
 
         assert [c.name for c in CountryTable().columns] == ['system', 'population', 'foo', 'tld']
-        
+
     def test_columns_verbose_name(self):
         """Tests that the model field's verbose_name is used for the column
         """
@@ -111,8 +111,8 @@ class TestDeclaration:
             class Meta:
                 model = Country
                 columns = ('tld',)
-        
-        assert [c.verbose_name for c in CountryTable.columns] = ['Domain Extension']
+
+        assert [c.column.verbose_name for c in CountryTable().columns] == ['Domain Extension']
 
 
 def test_basic():