コード例 #1
0
ファイル: test_process_sff.py プロジェクト: TheSchwa/qiime
 def test_make_flow_txt(self):
     """test_make_flow_txt should make flowgram file as expected"""
     flow_fp = os.path.join(self.sff_dir, 'test.txt')
     flow_gz_fp = os.path.join(self.gz_sff_dir, 'test_gz.txt')
     make_flow_txt(self.sff_fp, flow_fp)
     make_flow_txt(self.sff_gz_fp, flow_gz_fp)
     self.assertEqual(open(flow_fp).read(), flow_txt)
     self.assertEqual(open(flow_gz_fp).read(), flow_txt)
コード例 #2
0
 def test_make_flow_txt(self):
     """test_make_flow_txt should make flowgram file as expected"""
     flow_fp = os.path.join(self.sff_dir, 'test.txt')
     flow_gz_fp = os.path.join(self.gz_sff_dir, 'test_gz.txt')
     make_flow_txt(self.sff_fp, flow_fp)
     make_flow_txt(self.sff_gz_fp, flow_gz_fp)
     self.assertEqual(open(flow_fp).read(), flow_txt)
     self.assertEqual(open(flow_gz_fp).read(), flow_txt)