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

Method test_command_line

test/test_fr.py:172–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170 print "pattern.fr.tag()"
171
172 def test_command_line(self):
173 # Assert parsed output from the command-line (example from the documentation).
174 p = ["python", "-m", "pattern.fr", "-s", u"Le chat noir.", "-OTCRL"]
175 p = subprocess.Popen(p, stdout=subprocess.PIPE)
176 p.wait()
177 v = p.stdout.read()
178 v = v.strip()
179 self.assertEqual(v, "Le/DT/B-NP/O/O/le chat/NN/I-NP/O/O/chat noir/JJ/I-NP/O/O/noir ././O/O/O/.")
180 print "python -m pattern.fr"
181
182#---------------------------------------------------------------------------------------------------
183

Callers

nothing calls this directly

Calls 2

stripMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected