def test_get_split_volumes_2(self): volumes = ["/persist/repos/gc/a:/gc/a", "/persist/repos/gc/b:/gc/b"] self.assertEquals( _get_split_volumes(volumes), [ {"host_location": "/persist/repos/gc/a", "container_location": "/gc/a"}, {"host_location": "/persist/repos/gc/b", "container_location": "/gc/b"}, ], )
def test_get_split_volumes_2(self, fake_docker_client, fake_expanded_libs): volumes = ["/persist/repos/gc/a:/gc/a", "/persist/repos/gc/b:/gc/b"] self.assertEquals( _get_split_volumes(volumes), [ {"host_location": "/persist/repos/gc/a", "container_location": "/gc/a"}, {"host_location": "/persist/repos/gc/b", "container_location": "/gc/b"}, ], )
def test_get_split_volumes_2(self, fake_docker_client, fake_expanded_libs): volumes = ['/persist/repos/gc/a:/gc/a', '/persist/repos/gc/b:/gc/b'] self.assertEquals(_get_split_volumes(volumes), [{ 'host_location': '/persist/repos/gc/a', 'container_location': '/gc/a' }, { 'host_location': '/persist/repos/gc/b', 'container_location': '/gc/b' }])
def test_get_split_volumes_1(self, fake_docker_client, fake_expanded_libs): volumes = [] self.assertEquals([], _get_split_volumes(volumes))
def test_get_split_volumes_1(self): volumes = [] self.assertEquals([], _get_split_volumes(volumes))
def test_get_split_volumes_2(self): volumes = ['/persist/repos/gc/a:/gc/a', '/persist/repos/gc/b:/gc/b'] self.assertEquals(_get_split_volumes(volumes), [{'host_location': '/persist/repos/gc/a', 'container_location': '/gc/a'}, {'host_location': '/persist/repos/gc/b', 'container_location': '/gc/b'}])