Beispiel #1
0
 def test_all_bash(self):
     """Both Docker and Singularity strings specified"""
     r = raw(docker='RAW string', singularity='%raw\n    string')
     self.assertEqual(str(r), '')
Beispiel #2
0
 def test_singularity_only_singularity(self):
     """Only Singularity string specified"""
     r = raw(singularity='%raw\n    string')
     self.assertEqual(str(r), '%raw\n    string')
Beispiel #3
0
 def test_invalid_ctype(self):
     """Invalid container type specified"""
     r = raw(docker='RAW')
     with self.assertRaises(RuntimeError):
         str(r)
Beispiel #4
0
 def test_docker_only_singularity(self):
     """Only Docker string specified"""
     r = raw(docker='RAW string')
     self.assertEqual(str(r), '')
Beispiel #5
0
 def test_empty(self):
     """No raw strings specified"""
     r = raw()
     self.assertEqual(str(r), '')