def test_parse_invalid_envfile_contents(): try: envtool.parse_envfile_contents(""" a """) fail() except IOError: assert True
def test_parse_envfile_contents(): assert envtool.parse_envfile_contents(""" # Comment a=b """) == { 'a': 'b' }
def test_parse_envfile_contents(): assert envtool.parse_envfile_contents(""" # Comment a=b """) == {'a': 'b'}