def test_valid_workspace(self):
     with patch('os.path.isfile') as m:
         m.return_value = True
         w = Workspace("/tmp/docker-test")
         assert w.validate() is True
 def test_valid_workspace(self):
     with patch('os.path.isfile') as m:
         m.return_value = True
         w = Workspace("/tmp/docker-test")
         assert w.validate() is True
 def test_invalid_docker_workspace(self):
     w = Workspace("/tmp/docker-test", context="docker")
     with pytest.raises(OSError):
         w.validate()
 def test_invalid_docker_workspace(self):
     w = Workspace("/tmp/docker-test", context="docker")
     with pytest.raises(OSError):
         w.validate()