Lines Matching refs:as_uri
281 P('a').as_uri()
283 P().as_uri()
649 self.assertEqual(P('/').as_uri(), 'file:///')
650 self.assertEqual(P('/a/b.c').as_uri(), 'file:///a/b.c')
651 self.assertEqual(P('/a/b%#c').as_uri(), 'file:///a/b%25%23c')
660 self.assertEqual(P('/a/b\xe9').as_uri(),
761 P('/a/b').as_uri()
763 P('c:a/b').as_uri()
764 self.assertEqual(P('c:/').as_uri(), 'file:///c:/')
765 self.assertEqual(P('c:/a/b.c').as_uri(), 'file:///c:/a/b.c')
766 self.assertEqual(P('c:/a/b%#c').as_uri(), 'file:///c:/a/b%25%23c')
767 self.assertEqual(P('c:/a/b\xe9').as_uri(), 'file:///c:/a/b%C3%A9')
768 self.assertEqual(P('//some/share/').as_uri(), 'file://some/share/')
769 self.assertEqual(P('//some/share/a/b.c').as_uri(),
771 self.assertEqual(P('//some/share/a/b%#c\xe9').as_uri(),