Exemplo n.º 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), '')
Exemplo n.º 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')
Exemplo n.º 3
0
 def test_invalid_ctype(self):
     """Invalid container type specified"""
     r = raw(docker='RAW')
     with self.assertRaises(RuntimeError):
         str(r)
Exemplo n.º 4
0
 def test_docker_only_singularity(self):
     """Only Docker string specified"""
     r = raw(docker='RAW string')
     self.assertEqual(str(r), '')
Exemplo n.º 5
0
 def test_empty(self):
     """No raw strings specified"""
     r = raw()
     self.assertEqual(str(r), '')