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