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