Exemple #1
0
 def test_get_filepath_id_error(self):
     with self.assertRaises(QiitaDBError):
         get_filepath_id("raw_data", "Not_a_path", self.conn_handler)
Exemple #2
0
 def test_get_filepath_id_error(self):
     with self.assertRaises(QiitaDBError):
         get_filepath_id("raw_data", "Not_a_path", self.conn_handler)
Exemple #3
0
 def test_get_filepath_id(self):
     _, base = get_mountpoint("raw_data")[0]
     fp = join(base, '1_s_G1_L001_sequences.fastq.gz')
     obs = get_filepath_id("raw_data", fp, self.conn_handler)
     self.assertEqual(obs, 1)
Exemple #4
0
 def test_get_filepath_id(self):
     _, base = get_mountpoint("raw_data")[0]
     fp = join(base, '1_s_G1_L001_sequences.fastq.gz')
     obs = get_filepath_id("raw_data", fp, self.conn_handler)
     self.assertEqual(obs, 1)