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