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

Method test_command_line

test/test_de.py:206–214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 print "pattern.de.tag()"
205
206 def test_command_line(self):
207 # Assert parsed output from the command-line (example from the documentation).
208 p = ["python", "-m", "pattern.de", "-s", "Der grosse Hund.", "-OTCRL"]
209 p = subprocess.Popen(p, stdout=subprocess.PIPE)
210 p.wait()
211 v = p.stdout.read()
212 v = v.strip()
213 self.assertEqual(v, "Der/DT/B-NP/O/O/der grosse/JJ/I-NP/O/O/gross Hund/NN/I-NP/O/O/hund ././O/O/O/.")
214 print "python -m pattern.de"
215
216#---------------------------------------------------------------------------------------------------
217

Callers

nothing calls this directly

Calls 2

stripMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected