def test_get_client(): ctn.client()
def test_create_container_with_volumes(): container = ctn.create("bioboxes/velvet", "default", ["/host:/cont:ro"]) attr = ctn.client().inspect_container(container) nose.assert_in("/host", attr["Volumes"]) hlpr.remove_container(container)
def test_create_container_with_no_volumes(): container = ctn.create("bioboxes/velvet", "default") attr = ctn.client().inspect_container(container) nose.assert_equal(attr["Volumes"], {}) hlpr.remove_container(container)