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