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

Method test_command_line

test/test_nl.py:226–234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

224 print "pattern.nl.tag()"
225
226 def test_command_line(self):
227 # Assert parsed output from the command-line (example from the documentation).
228 p = ["python", "-m", "pattern.nl", "-s", "Leuke kat.", "-OTCRL"]
229 p = subprocess.Popen(p, stdout=subprocess.PIPE)
230 p.wait()
231 v = p.stdout.read()
232 v = v.strip()
233 self.assertEqual(v, "Leuke/JJ/B-NP/O/O/leuk kat/NN/I-NP/O/O/kat ././O/O/O/.")
234 print "python -m pattern.nl"
235
236#---------------------------------------------------------------------------------------------------
237

Callers

nothing calls this directly

Calls 2

stripMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected