/[thuban]/branches/WIP-pyshapelib-bramz/test/test_transientdb.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/test/test_transientdb.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 842 by bh, Tue May 6 17:13:00 2003 UTC revision 845 by bh, Tue May 6 18:05:13 2003 UTC
# Line 118  class TestTransientTable(unittest.TestCa Line 118  class TestTransientTable(unittest.TestCa
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"""

Legend:
Removed from v.842  
changed lines
  Added in v.845

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26