|
@@ -2,7 +2,6 @@
|
|
|
|
|
|
import os
|
|
import os
|
|
import signal
|
|
import signal
|
|
-import sys
|
|
|
|
import tempfile
|
|
import tempfile
|
|
import unittest
|
|
import unittest
|
|
|
|
|
|
@@ -179,14 +178,6 @@ class DictOfKeyValuePairsTests(unittest.TestCase):
|
|
'SUPERVISOR_SERVER_URL': 'http://127.0.0.1:9001'}
|
|
'SUPERVISOR_SERVER_URL': 'http://127.0.0.1:9001'}
|
|
self.assertEqual(actual, expected)
|
|
self.assertEqual(actual, expected)
|
|
|
|
|
|
- def test_handles_unquoted_non_alphanum(self):
|
|
|
|
- actual = datatypes.dict_of_key_value_pairs(
|
|
|
|
- 'HOME=/home/auser,FOO=/.foo+(1.2)-_/,'
|
|
|
|
- 'SUPERVISOR_SERVER_URL=http://127.0.0.1:9001')
|
|
|
|
- expected = {'HOME': '/home/auser', 'FOO': '/.foo+(1.2)-_/',
|
|
|
|
- 'SUPERVISOR_SERVER_URL': 'http://127.0.0.1:9001'}
|
|
|
|
- self.assertEqual(actual, expected)
|
|
|
|
-
|
|
|
|
def test_allows_trailing_comma(self):
|
|
def test_allows_trailing_comma(self):
|
|
actual = self._callFUT('foo=bar,')
|
|
actual = self._callFUT('foo=bar,')
|
|
expected = {'foo': 'bar'}
|
|
expected = {'foo': 'bar'}
|