From effc4d2be7461f0f2690139c55e780582025ebc7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20Elsd=C3=B6rfer?= Date: Wed, 13 Oct 2010 18:56:48 +0200 Subject: [PATCH] Fixed some problems with Harro's test. --- tests/test_models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(): -- 2.26.2