示例#1
0
 def test_table_signature(self):
     """signature() should return a hash of the structure and the data for a table"""
     url = "odbc://tuttle_test_db/test_table"
     res = ODBCResource(url)
     sig = res.signature()
     expected = "7b52009b64fd0a2a49e6d8a939753077792b0554"
     assert sig == expected, sig
示例#2
0
 def test_partition_signature(self):
     """signature() should return a hash of the structure and the data for a table"""
     url = "odbc://tuttle_test_db/test_partitionned_table_num?col_int=14"
     res = ODBCResource(url)
     sig = res.signature()
     expected = "d22e04365ffe5ba05d7f5ec4f2115fde8d251e3d"
     assert sig == expected, sig