Treat columns as ordered throughout code

The set() does not make anything any easier,
lists are closer to underlying representation.
This commit is contained in:
Stefan Wehrmeyer
2014-01-31 20:42:04 +01:00
parent 89ebd62732
commit 8f4cd59c9a
3 changed files with 8 additions and 6 deletions
+1 -2
View File
@@ -229,8 +229,7 @@ class TableTestCase(unittest.TestCase):
def test_columns(self):
cols = self.tbl.columns
assert isinstance(cols, set), 'columns should be a set'
assert len(cols) == 4, 'column count mismatch'
assert len(list(cols)) == 4, 'column count mismatch'
assert 'date' in cols and 'temperature' in cols and 'place' in cols
def test_iter(self):