Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_loads_padded_equals():
assert loads("foo = bar") == {"foo": "bar"}
def test_loads_spacekey():
assert loads(" =bar") == {"": "bar"}
def test_loads_bang_comment():
assert loads('!This is a comment.') == {}
def test_loads_equals_space():
assert loads("foo= bar") == {"foo": "bar"}
def test_loads_simple():
assert loads('foo=bar') == {"foo": "bar"}
def test_loads_bang_comment_key_value():
assert loads('!This is a comment.\nkey = value') == {"key": "value"}
def test_loads_comment():
assert loads('#This is a comment.') == {}
def test_loads_comment_key_value():
assert loads('#This is a comment.\nkey = value') == {"key": "value"}
def test_loads_space_equals():
assert loads("foo =bar") == {"foo": "bar"}
def test_loads_nokey():
assert loads("=bar") == {"": "bar"}