def test_get_create_container_volumes(self, fake_docker_client, fake_expanded_libs): split_volumes = [{ 'host_location': '/persist/repos/gc/a', 'container_location': '/gc/a' }, { 'host_location': '/persist/repos/gc/b', 'container_location': '/gc/b' }] self.assertEquals(['/gc/a', '/gc/b'], _get_create_container_volumes(split_volumes))
def test_get_create_container_volumes(self, fake_docker_client, fake_expanded_libs): split_volumes = [ {"host_location": "/persist/repos/gc/a", "container_location": "/gc/a"}, {"host_location": "/persist/repos/gc/b", "container_location": "/gc/b"}, ] self.assertEquals(["/gc/a", "/gc/b"], _get_create_container_volumes(split_volumes))
def test_get_create_container_volumes(self): split_volumes = [ {"host_location": "/persist/repos/gc/a", "container_location": "/gc/a"}, {"host_location": "/persist/repos/gc/b", "container_location": "/gc/b"}, ] self.assertEquals(["/gc/a", "/gc/b"], _get_create_container_volumes(split_volumes))