MCPcopy Index your code
hub / github.com/clips/pattern / test_command_line

Method test_command_line

test/test_it.py:253–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

251 print "pattern.it.tag()"
252
253 def test_command_line(self):
254 # Assert parsed output from the command-line (example from the documentation).
255 p = ["python", "-m", "pattern.it", "-s", "Il gatto nero.", "-OTCRL"]
256 p = subprocess.Popen(p, stdout=subprocess.PIPE)
257 p.wait()
258 v = p.stdout.read()
259 v = v.strip()
260 self.assertEqual(v, "Il/DT/B-NP/O/O/il gatto/NN/I-NP/O/O/gatto nero/JJ/I-NP/O/O/nero ././O/O/O/.")
261 print "python -m pattern.it"
262
263#---------------------------------------------------------------------------------------------------
264

Callers

nothing calls this directly

Calls 2

stripMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected