コード例 #1
0
def test_get_client():
    ctn.client()
コード例 #2
0
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)
コード例 #3
0
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)
コード例 #4
0
def test_get_client():
    ctn.client()
コード例 #5
0
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)
コード例 #6
0
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)