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

Method test_case

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

Source from the content-addressed store, hash-verified

49
50class Tests (unittest.TestCase):
51 def test_case(self):
52 ns=root.__dict__
53 tests=[
54 ("a*", ["abbot","abel","active","arna",]),
55 ("?b*.?o*",["abbot.koppel","abbot.loop","abel.koppel","abel.loop",]),
56 ("_a*", []),
57 ("_*anka", ["__anka",]),
58 ("_*a*", ["__anka",]),
59 ]
60 for pat,res in tests:
61 res.sort()
62 a=sorted(wildcard.list_namespace(ns,"all",pat,ignore_case=False,
63 show_all=False).keys())
64 self.assertEqual(a,res)
65
66 def test_case_showall(self):
67 ns=root.__dict__

Callers

nothing calls this directly

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected