

def test_pull(self, mock_client):
    self.client = DockerClient()
    self.client.pull('alpine', '3.2')
    docker_pull = self.client.client.pull
    docker_pull.assert_called_once_with('alpine', tag='3.2', insecure_registry=True, stream=True)
    with self.assertRaises(PermissionDenied):
        self.client.pull('deis/controller', 'v1.11.1')
    with self.assertRaises(PermissionDenied):
        self.client.pull('localhost:5000/deis/controller', 'v1.11.1')

dataset/ETHPy150Open deis/deis/controller/registry/tests.py DockerClientTest.test_pull/original