##// END OF EJS Templates
use ø instead of å in test_completerlib...
MinRK -
Show More
@@ -34,7 +34,7 b' class MockEvent(object):'
34 class Test_magic_run_completer(unittest.TestCase):
34 class Test_magic_run_completer(unittest.TestCase):
35 def setUp(self):
35 def setUp(self):
36 self.BASETESTDIR = tempfile.mkdtemp()
36 self.BASETESTDIR = tempfile.mkdtemp()
37 for fil in [u"aaå.py", u"a.py", u"b.py"]:
37 for fil in [u"aaø.py", u"a.py", u"b.py"]:
38 with open(join(self.BASETESTDIR, fil), "w") as sfile:
38 with open(join(self.BASETESTDIR, fil), "w") as sfile:
39 sfile.write("pass\n")
39 sfile.write("pass\n")
40 self.oldpath = os.getcwdu()
40 self.oldpath = os.getcwdu()
@@ -50,7 +50,7 b' class Test_magic_run_completer(unittest.TestCase):'
50 event = MockEvent(u"%run a")
50 event = MockEvent(u"%run a")
51 mockself = None
51 mockself = None
52 match = magic_run_completer(mockself, event)
52 match = magic_run_completer(mockself, event)
53 self.assertEqual(match, [u"a.py", u"aaå.py",])
53 self.assertEqual(match, [u"a.py", u"aaø.py"])
54
54
55 def test_2(self):
55 def test_2(self):
56 """Test magic_run_completer, should match one alterntive
56 """Test magic_run_completer, should match one alterntive
@@ -58,12 +58,12 b' class Test_magic_run_completer(unittest.TestCase):'
58 event = MockEvent(u"%run aa")
58 event = MockEvent(u"%run aa")
59 mockself = None
59 mockself = None
60 match = magic_run_completer(mockself, event)
60 match = magic_run_completer(mockself, event)
61 self.assertEqual(match, [u"aaå.py",])
61 self.assertEqual(match, [u"aaø.py"])
62
62
63 def test_3(self):
63 def test_3(self):
64 """Test '%run "a<tab>' completion"""
64 """Test '%run "a<tab>' completion"""
65 event = MockEvent(u'%run "a')
65 event = MockEvent(u'%run "a')
66 mockself = None
66 mockself = None
67 match = magic_run_completer(mockself, event)
67 match = magic_run_completer(mockself, event)
68 self.assertEqual(match, [u"a.py", u"aaå.py"])
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