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

Method test_bare_statement

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

Source from the content-addressed store, hash-verified

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"])
57
58 def test_duplicate_names_get_suffix(self):
59 ids = self._ids("def foo(): pass\ndef foo(): pass")

Callers

nothing calls this directly

Calls 1

_idsMethod · 0.95

Tested by

no test coverage detected