Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit effc4d2

Browse files
committed
Fixed some problems with Harro's test.
1 parent 31963d9 commit effc4d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@ class Meta:
103103
columns = ('system', 'population', 'foo', 'tld',)
104104

105105
assert [c.name for c in CountryTable().columns] == ['system', 'population', 'foo', 'tld']
106-
106+
107107
def test_columns_verbose_name(self):
108108
"""Tests that the model field's verbose_name is used for the column
109109
"""
110110
class CountryTable(tables.ModelTable):
111111
class Meta:
112112
model = Country
113113
columns = ('tld',)
114-
115-
assert [c.verbose_name for c in CountryTable.columns] = ['Domain Extension']
114+
115+
assert [c.column.verbose_name for c in CountryTable().columns] == ['Domain Extension']
116116

117117

118118
def test_basic():

0 commit comments

Comments
 (0)