MCPcopy Create free account
hub / github.com/ipython/ipython / test_case_showall

Method test_case_showall

IPython/utils/tests/test_wildcard.py:66–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 self.assertEqual(a,res)
65
66 def test_case_showall(self):
67 ns=root.__dict__
68 tests=[
69 ("a*", ["abbot","abel","active","arna",]),
70 ("?b*.?o*",["abbot.koppel","abbot.loop","abel.koppel","abel.loop",]),
71 ("_a*", ["_apan"]),
72 ("_*anka", ["__anka",]),
73 ("_*a*", ["__anka","_apan",]),
74 ]
75 for pat,res in tests:
76 res.sort()
77 a=sorted(wildcard.list_namespace(ns,"all",pat,ignore_case=False,
78 show_all=True).keys())
79 self.assertEqual(a,res)
80
81
82 def test_nocase(self):

Callers

nothing calls this directly

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected