| 251 | print "pattern.it.tag()" |
| 252 | |
| 253 | def test_command_line(self): |
| 254 | # Assert parsed output from the command-line (example from the documentation). |
| 255 | p = ["python", "-m", "pattern.it", "-s", "Il gatto nero.", "-OTCRL"] |
| 256 | p = subprocess.Popen(p, stdout=subprocess.PIPE) |
| 257 | p.wait() |
| 258 | v = p.stdout.read() |
| 259 | v = v.strip() |
| 260 | self.assertEqual(v, "Il/DT/B-NP/O/O/il gatto/NN/I-NP/O/O/gatto nero/JJ/I-NP/O/O/nero ././O/O/O/.") |
| 261 | print "python -m pattern.it" |
| 262 | |
| 263 | #--------------------------------------------------------------------------------------------------- |
| 264 | |