예제 #1
0
def test_create_container_override():
    c = create_container({
        'http': 'http',
        'fs': 'fs',
    })
    assert len(c) == 2
    assert 'fs' in c and c['fs'] == 'fs'
    assert 'http' in c and c['http'] == 'http'
예제 #2
0
def test_create_container_override():
    c = create_container({"http": "http", "fs": "fs"})
    assert len(c) == 2
    assert "fs" in c and c["fs"] == "fs"
    assert "http" in c and c["http"] == "http"
예제 #3
0
def test_create_container_empty_values(services):
    c = create_container(services)
    assert len(c) == 2
    assert 'fs' in c and get_name(c['fs']) == 'OSFS'
    assert 'http' in c and get_name(c['http']) == 'requests'
예제 #4
0
def test_create_container_empty_values(services):
    c = create_container(services)
    assert len(c) == 2
    assert "fs" in c and get_name(c["fs"]) == "OSFS"
    assert "http" in c and get_name(c["http"]) == "requests"