Ejemplo n.º 1
0
def test_parse_invalid_envfile_contents():
    try:
        envtool.parse_envfile_contents("""
a
        """)
        fail()
    except IOError:
        assert True
Ejemplo n.º 2
0
def test_parse_invalid_envfile_contents():
    try:
        envtool.parse_envfile_contents("""
a
        """)
        fail()
    except IOError:
        assert True
Ejemplo n.º 3
0
def test_parse_envfile_contents():
    assert envtool.parse_envfile_contents("""
        # Comment
        a=b
        """) == {
        'a': 'b'
    }
Ejemplo n.º 4
0
def test_parse_envfile_contents():
    assert envtool.parse_envfile_contents("""
        # Comment
        a=b
        """) == {'a': 'b'}