Lines Matching defs:p5i
39 import pkg.p5i as p5i
49 """Class to test the functionality of the pkg.p5i module."""
110 """Verify that the p5i parsing and writing works as expected."""
112 # Verify that p5i export and parse works as expected.
123 # Dump the p5i data.
125 p5i.write(fobj, [pub], pkg_names=pnames)
127 # Verify that the p5i data ends with a terminating newline.
163 validate_results(p5i.parse(fileobj=fobj))
172 validate_results(p5i.parse(location=path1))
179 validate_results(p5i.parse(location=location))
183 # Verify that appropriate exceptions are raised for p5i
187 p5i.parse, location="file://{0}".format(nefpath))
190 p5i.parse, location=nefpath)
193 # p5i information.
200 self.assertRaises(api_errors.InvalidP5IFile, p5i.parse,
204 self.assertRaises(api_errors.InvalidP5IFile, p5i.parse,
208 """Verify that a p5i file with various parts of a publisher's
229 # Dump the p5i data.
231 p5i.write(fobj, [pub])
239 pub, pkg_names = p5i.parse(data=output)[0]
276 # Dump the p5i data.
278 p5i.write(fobj, [pub])
287 pub, pkg_names = p5i.parse(data=output)[0]