##// END OF EJS Templates
use sets in test_completerlib, to be insensitive to ordering
MinRK -
Show More
@@ -49,21 +49,21 b' class Test_magic_run_completer(unittest.TestCase):'
49 """
49 """
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 = set(magic_run_completer(mockself, event))
53 self.assertEqual(match, [u"a.py", u"aaø.py"])
53 self.assertEqual(match, set([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
57 """
57 """
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 = set(magic_run_completer(mockself, event))
61 self.assertEqual(match, [u"aaø.py"])
61 self.assertEqual(match, set([u"aaø.py"]))
62
62
63 def test_3(self):
63 def test_3(self):
64 """Test '%run "a<tab>' completion"""
64 """Test magic_run_completer with unterminated " """
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 = set(magic_run_completer(mockself, event))
68 self.assertEqual(match, [u"a.py", u"aaø.py"])
68 self.assertEqual(match, set([u"a.py", u"aaø.py"]))
69
69
General Comments 0
You need to be logged in to leave comments. Login now