mirror of https://gitlab.com/pamhyr/pamhyr2
Tests: Fix pep8.
parent
4355be1a9c
commit
fdac834d48
|
|
@ -79,15 +79,14 @@ class ToolsCMDParserTestCase(unittest.TestCase):
|
||||||
self.assertEqual(res[i], s)
|
self.assertEqual(res[i], s)
|
||||||
|
|
||||||
def test_unix_escape_space(self):
|
def test_unix_escape_space(self):
|
||||||
cmd = "/foo/bar\ baz -a -b -c"
|
cmd = r"/foo/bar\ baz -a -b -c"
|
||||||
expect = ["/foo/bar\ baz", "-a", '-b', "-c"]
|
expect = [r"/foo/bar\ baz", "-a", '-b', "-c"]
|
||||||
|
|
||||||
res = parse_command_line(cmd)
|
res = parse_command_line(cmd)
|
||||||
|
|
||||||
for i, s in enumerate(expect):
|
for i, s in enumerate(expect):
|
||||||
self.assertEqual(res[i], s)
|
self.assertEqual(res[i], s)
|
||||||
|
|
||||||
|
|
||||||
def test_windows_prog_files(self):
|
def test_windows_prog_files(self):
|
||||||
cmd = "\"C:\\Program Files (x86)\foo\bar\" a -b -c"
|
cmd = "\"C:\\Program Files (x86)\foo\bar\" a -b -c"
|
||||||
expect = ["C:\\Program Files (x86)\foo\bar", "a", '-b', "-c"]
|
expect = ["C:\\Program Files (x86)\foo\bar", "a", '-b', "-c"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue