예제 #1
0
 def test_ctf_starfile(self):
     files = r.get_file_names('/tmp/ctf.star')
     self.assertEqual(files[0],'20160126_BRCA1_GO_0001')
     self.assertEqual(files[-1],'20160126_BRCA1_GO_0092')
예제 #2
0
 def test_bad_starfile(self):
     with self.assertRaises(TypeError):
         with patch('sys.stdout', new=MagicMock()):
             r.get_file_names('/tmp/bad.star')
예제 #3
0
 def test_file_not_exists(self):
     with self.assertRaises(SystemExit):
         with patch('sys.stdout', new=MagicMock()):
             r.get_file_names('nonexistant.star')