##// 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 50 event = MockEvent(u"%run a")
51 51 mockself = None
52 match = magic_run_completer(mockself, event)
53 self.assertEqual(match, [u"a.py", u"aaø.py"])
52 match = set(magic_run_completer(mockself, event))
53 self.assertEqual(match, set([u"a.py", u"aaø.py"]))
54 54
55 55 def test_2(self):
56 56 """Test magic_run_completer, should match one alterntive
57 57 """
58 58 event = MockEvent(u"%run aa")
59 59 mockself = None
60 match = magic_run_completer(mockself, event)
61 self.assertEqual(match, [u"aaø.py"])
60 match = set(magic_run_completer(mockself, event))
61 self.assertEqual(match, set([u"aaø.py"]))
62 62
63 63 def test_3(self):
64 """Test '%run "a<tab>' completion"""
64 """Test magic_run_completer with unterminated " """
65 65 event = MockEvent(u'%run "a')
66 66 mockself = None
67 match = magic_run_completer(mockself, event)
68 self.assertEqual(match, [u"a.py", u"aaø.py"])
67 match = set(magic_run_completer(mockself, event))
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