Пример #1
0
 def test_get_version_of_program_nextflow(self):
     '''test get_version_of_program nextflow'''
     # We don't know what the version might be, so just
     # check that we got something that has numbers and dots
     got = dependencies.get_version_of_program('nextflow')
     self.assertIsNotNone(got)
     version_regex = re.compile(r'^[0-9\.]+ build [0-9]+$')
     self.assertIsNotNone(version_regex.search(got))
Пример #2
0
 def test_get_version_of_program_dnadiff(self):
     """test get_version_of_program dnadiff"""
     # We don't know what the version might be, so just
     # check that we got something that has numbers and dots
     got = dependencies.get_version_of_program("dnadiff")
     self.assertIsNotNone(got)
     version_regex = re.compile(r"^[0-9\.]+$")
     self.assertIsNotNone(version_regex.search(got))
Пример #3
0
 def test_get_version_of_program_bwa(self):
     '''test get_version_of_program bwa'''
     # We don't know what the version might be, so just
     # check that we got something that looks like X.Y.Z-rxxxxx
     got = dependencies.get_version_of_program('bwa')
     self.assertIsNotNone(got)
     version_regex = re.compile(r'^[0-9]+\.[0-9]+\.[0-9]+.*')
     self.assertIsNotNone(version_regex.search(got))
Пример #4
0
 def test_get_version_of_program_gramtools(self):
     """test get_version_of_program gramtools"""
     # We don't know what the version might be, so just
     # check that we got something that looks like X.Y.Z.
     got = dependencies.get_version_of_program("gramtools")
     self.assertIsNotNone(got)
     version_regex = re.compile(r"^[0-9]+\.[0-9]+\.[0-9]+$")
     self.assertIsNotNone(version_regex.search(got))