MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / test_class

Method test_class

tests/unit/ast_cache_test.py:52–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 self.assertEqual(self._ids("async def bar(): pass"), ["AsyncFunctionDef:bar"])
51
52 def test_class(self):
53 self.assertEqual(self._ids("class MyClass: pass"), ["ClassDef:MyClass"])
54
55 def test_bare_statement(self):
56 self.assertEqual(self._ids("x = 1"), ["stmt:1"])

Callers

nothing calls this directly

Calls 1

_idsMethod · 0.95

Tested by

no test coverage detected