| 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 | |