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

Method test_nocase

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

Source from the content-addressed store, hash-verified

80
81
82 def test_nocase(self):
83 ns=root.__dict__
84 tests=[
85 ("a*", ["abbot","abel","ABEL","active","arna",]),
86 ("?b*.?o*",["abbot.koppel","abbot.loop","abel.koppel","abel.loop",
87 "ABEL.koppel","ABEL.loop",]),
88 ("_a*", []),
89 ("_*anka", ["__anka","__ANKA",]),
90 ("_*a*", ["__anka","__ANKA",]),
91 ]
92 for pat,res in tests:
93 res.sort()
94 a=sorted(wildcard.list_namespace(ns,"all",pat,ignore_case=True,
95 show_all=False).keys())
96 self.assertEqual(a,res)
97
98 def test_nocase_showall(self):
99 ns=root.__dict__

Callers

nothing calls this directly

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected