MCPcopy
hub / github.com/nltk/nltk / test_vnclass_by_shortid

Method test_vnclass_by_shortid

nltk/test/unit/test_verbnet.py:258–263  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256 assert vc.get("ID") == cid
257
258 def test_vnclass_by_shortid(self):
259 cid = self.vn.classids()[0]
260 sid = self.vn.shortid(cid)
261 vc = self.vn.vnclass(sid)
262 assert vc is not None
263 assert vc.get("ID") == cid
264
265 def test_frames(self):
266 cid = self.vn.classids()[0]

Callers

nothing calls this directly

Calls 4

classidsMethod · 0.80
shortidMethod · 0.80
vnclassMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected