def test_select_where_withoutfile(self): SQL = SELECT.create_sql_select_where() pgres = dbop.sql_exe_pg('../peloton_test.conf', SQL) ptres = dbop.sql_exe_pt('../peloton_test.conf', SQL) selt.assertTrue(pgres)
def test_select_where_withoutfile(): SQL = SELECT.create_sql_select_where() pgres = dbop.sql_exe_pg('../peloton_test.conf', SQL) ptres = dbop.sql_exe_pt('../peloton_test.conf', SQL) assert(pgres == ptres)
def test_select_where(self): SQL = SELECT.create_sql_select_where() pgfile = dbop.sql_exe_pg_tofile('../peloton_test.conf', SQL, 'select_where.out') ptfile = dbop.sql_exe_pt_tofile('../peloton_test.conf', SQL, 'select_where.out') res = fileop.compare_results(pgfile, ptfile) self.assertTrue(res)
def test_select_where(): SQL = SELECT.create_sql_select_where() pgfile = dbop.sql_exe_pg_tofile('../peloton_test.conf', SQL, 'select_where.out') ptfile = dbop.sql_exe_pt_tofile('../peloton_test.conf', SQL, 'select_where.out') res = fileop.compare_results(pgfile, ptfile) assert(res == True)