Lines Matching refs:as_uri
282 P('a').as_uri()
284 P().as_uri()
719 self.assertEqual(P('/').as_uri(), 'file:///')
720 self.assertEqual(P('/a/b.c').as_uri(), 'file:///a/b.c')
721 self.assertEqual(P('/a/b%#c').as_uri(), 'file:///a/b%25%23c')
730 self.assertEqual(P('/a/b\xe9').as_uri(),
831 P('/a/b').as_uri()
833 P('c:a/b').as_uri()
834 self.assertEqual(P('c:/').as_uri(), 'file:///c:/')
835 self.assertEqual(P('c:/a/b.c').as_uri(), 'file:///c:/a/b.c')
836 self.assertEqual(P('c:/a/b%#c').as_uri(), 'file:///c:/a/b%25%23c')
837 self.assertEqual(P('c:/a/b\xe9').as_uri(), 'file:///c:/a/b%C3%A9')
838 self.assertEqual(P('//some/share/').as_uri(), 'file://some/share/')
839 self.assertEqual(P('//some/share/a/b.c').as_uri(),
841 self.assertEqual(P('//some/share/a/b%#c\xe9').as_uri(),