Show More
@@ -34,7 +34,7 b' class MockEvent(object):' | |||
|
34 | 34 | class Test_magic_run_completer(unittest.TestCase): |
|
35 | 35 | def setUp(self): |
|
36 | 36 | self.BASETESTDIR = tempfile.mkdtemp() |
|
37 |
for fil in [u"aa |
|
|
37 | for fil in [u"aaø.py", u"a.py", u"b.py"]: | |
|
38 | 38 | with open(join(self.BASETESTDIR, fil), "w") as sfile: |
|
39 | 39 | sfile.write("pass\n") |
|
40 | 40 | self.oldpath = os.getcwdu() |
@@ -50,7 +50,7 b' class Test_magic_run_completer(unittest.TestCase):' | |||
|
50 | 50 | event = MockEvent(u"%run a") |
|
51 | 51 | mockself = None |
|
52 | 52 | match = magic_run_completer(mockself, event) |
|
53 |
self.assertEqual(match, [u"a.py", u"aa |
|
|
53 | self.assertEqual(match, [u"a.py", u"aaø.py"]) | |
|
54 | 54 | |
|
55 | 55 | def test_2(self): |
|
56 | 56 | """Test magic_run_completer, should match one alterntive |
@@ -58,12 +58,12 b' class Test_magic_run_completer(unittest.TestCase):' | |||
|
58 | 58 | event = MockEvent(u"%run aa") |
|
59 | 59 | mockself = None |
|
60 | 60 | match = magic_run_completer(mockself, event) |
|
61 |
self.assertEqual(match, [u"aa |
|
|
61 | self.assertEqual(match, [u"aaø.py"]) | |
|
62 | 62 | |
|
63 | 63 | def test_3(self): |
|
64 | 64 | """Test '%run "a<tab>' completion""" |
|
65 | 65 | event = MockEvent(u'%run "a') |
|
66 | 66 | mockself = None |
|
67 | 67 | match = magic_run_completer(mockself, event) |
|
68 |
self.assertEqual(match, [u"a.py", u"aa |
|
|
68 | self.assertEqual(match, [u"a.py", u"aaø.py"]) | |
|
69 | 69 |
General Comments 0
You need to be logged in to leave comments.
Login now