118 |
self.run_iceland_political_tests(table) |
self.run_iceland_political_tests(table) |
119 |
self.run_iceland_political_tests(table) |
self.run_iceland_political_tests(table) |
120 |
|
|
121 |
|
def test_auto_transient_table_query(self): |
122 |
|
"""Test AutoTransientTable.SimpleQuery()""" |
123 |
|
orig_table = DBFTable(os.path.join("..", "Data", "iceland", |
124 |
|
"political.dbf")) |
125 |
|
table = AutoTransientTable(self.transientdb, orig_table) |
126 |
|
# Only a simple test here. The AutoTransientTable siply |
127 |
|
# delegates to its transient table so it should be OK that the |
128 |
|
# real test for it is in test_transient_table_query. However, |
129 |
|
# it's important to check that the column handling works |
130 |
|
# correctly because the AutoTransientTable and it's underlying |
131 |
|
# transient table use different column object types. |
132 |
|
self.assertEquals(table.SimpleQuery(table.Column("AREA"), ">", 10.0), |
133 |
|
[144]) |
134 |
|
|
135 |
def test_transient_joined_table(self): |
def test_transient_joined_table(self): |
136 |
"""Test TransientJoinedTable""" |
"""Test TransientJoinedTable""" |