Changeset - 21172121aa62
[Not reviewed]
0 1 0
Lance Edgar (lance) - 4 years ago 2020-06-16 16:40:36
lance@edbob.org
Add a test for `config.parse_list()` with single quotes
1 file changed with 11 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rattail/tests/test_config.py
Show inline comments
 
@@ -89,6 +89,17 @@ class TestParseListFunc(unittest.TestCase):
 
        self.assertEqual(value[1], u'C:\\some path\\with spaces\\and, a comma')
 
        self.assertEqual(value[2], u'baz')
 

	
 
    def test_multiple_values_separated_by_whitespace_and_commas_with_single_quotes(self):
 
        value = config.parse_list("""
 
        foo
 
        'C:\\some path\\with spaces\\and, a comma',
 
        baz
 
        """)
 
        self.assertEqual(len(value), 3)
 
        self.assertEqual(value[0], 'foo')
 
        self.assertEqual(value[1], 'C:\\some path\\with spaces\\and, a comma')
 
        self.assertEqual(value[2], 'baz')
 

	
 

	
 
class TestRattailConfig(unittest.TestCase):
 

	
0 comments (0 inline, 0 general)