From: Michael Elsdörfer Date: Wed, 13 Oct 2010 16:56:48 +0000 (+0200) Subject: Fixed some problems with Harro's test. X-Git-Tag: 0.2.1~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=effc4d2be7461f0f2690139c55e780582025ebc7;p=django-tables2.git Fixed some problems with Harro's test. --- diff --git a/tests/test_models.py b/tests/test_models.py index c87b142..21d5bac 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -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():