Esempio n. 1
0
 def setUp(self):
     if os.path.exists("nac.db"):
         return
     start = time.time()
     columnfile.colfile2db(
         os.path.join("..", "nac_demo", "peaks.out_merge_t200"), "nac.db")
     print("write db", time.time() - start)
Esempio n. 2
0
 def test1(self):
     """ vague check
     """
     columnfile.colfile2db("test.flt", "test.db")
     con = sqlite3.connect("test.db")
     cur = con.cursor()
     cur.execute("select * from peaks")
     i = 0
     for row in cur:
         for item in row:
             i += 1
             self.assertEqual(i, item)