Skip to content

Commit

Permalink
Add test for quoted empty with unquoted. Refs #873
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Jan 5, 2017
1 parent 545cd73 commit 8be5bc1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions supervisor/tests/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ def test_handles_empty_inside_quotes(self):
expected = {'foo': ''}
self.assertEqual(actual, expected)

def test_handles_empty_inside_quotes_with_second_unquoted_pair(self):
actual = datatypes.dict_of_key_value_pairs('foo="",bar=a')
expected = {'foo': '', 'bar': 'a'}
self.assertEqual(actual, expected)

def test_handles_unquoted_non_alphanum(self):
actual = self._callFUT(
'HOME=/home/auser,FOO=/.foo+(1.2)-_/,'
Expand Down

0 comments on commit 8be5bc1

Please sign in to comment.