Skip to content

Commit 8be5bc1

Browse files
committed
Add test for quoted empty with unquoted. Refs #873
1 parent 545cd73 commit 8be5bc1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

supervisor/tests/test_datatypes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ def test_handles_empty_inside_quotes(self):
174174
expected = {'foo': ''}
175175
self.assertEqual(actual, expected)
176176

177+
def test_handles_empty_inside_quotes_with_second_unquoted_pair(self):
178+
actual = datatypes.dict_of_key_value_pairs('foo="",bar=a')
179+
expected = {'foo': '', 'bar': 'a'}
180+
self.assertEqual(actual, expected)
181+
177182
def test_handles_unquoted_non_alphanum(self):
178183
actual = self._callFUT(
179184
'HOME=/home/auser,FOO=/.foo+(1.2)-_/,'

0 commit comments

Comments
 (0)