def test_get_bwa_0_7_12(self): content = "\nProgram: bwa (alignment via Burrows-Wheeler transformation)\nVersion: 0.7.12-r1039" with mock.patch('subprocess.getoutput', mock.Mock(return_value=content)): self.assertEqual( '0.7.12-r1039', align.get_aligner_version(align.SUPPORTED_ALIGNER.BWA_MEM))
def test_get_blat_36x2(self): content = 'blat - Standalone BLAT v. 36x2 fast sequence search command line tool\n' with mock.patch('subprocess.getoutput', mock.Mock(return_value=content)): self.assertEqual( '36x2', align.get_aligner_version(align.SUPPORTED_ALIGNER.BLAT))
def test_get_bwa_0_7_15(self): content = ( "\nProgram: bwa (alignment via Burrows-Wheeler transformation)\nVersion: 0.7.15-r1140" ) with mock.patch('subprocess.getoutput', mock.Mock(return_value=content)): assert align.get_aligner_version(align.SUPPORTED_ALIGNER.BWA_MEM) == '0.7.15-r1140'
def test_get_blat_36(self): content = "blat - Standalone BLAT v. 36 fast sequence search command line tool" with mock.patch('subprocess.getoutput', mock.Mock(return_value=content)): assert align.get_aligner_version(align.SUPPORTED_ALIGNER.BLAT) == '36'