def test_get_result_path(self): """Tests fasta2col result path""" c = fasta2col(InputHandler='_input_as_lines') res = c(self.input) self.assertEqualItems(res.keys(),['StdOut','StdErr','ExitStatus']) self.assertEqual(res['ExitStatus'],0) res.cleanUp()
def test_stdout_input_as_lines(self): """Test fasta2col stdout input as lines""" c = fasta2col(InputHandler='_input_as_lines') res = c(self.input) self.assertEqual(res['ExitStatus'],0) assert res['StdOut'] is not None res.cleanUp()
def test_stdout_input_as_string(self): """Test fasta2col stdout input as string""" c = fasta2col() f = open('/tmp/single.col','w') txt = '\n'.join([str(i).strip('\n') for i in self.input]) f.write(txt) f.close() res = c('/tmp/single.col') self.assertEqual(res['ExitStatus'],0) assert res['StdOut'] is not None res.cleanUp() remove('/tmp/single.col')