Lines Matching refs:expanduser
232 self.assertEqual(posixpath.expanduser("foo"), "foo")
233 self.assertEqual(posixpath.expanduser(b"foo"), b"foo")
238 self.assertEqual(posixpath.expanduser("~"), "/home/victor")
242 self.assertEqual(posixpath.expanduser("~"), "/home/victor")
247 self.assertEqual(posixpath.expanduser("~"), "/")
248 self.assertEqual(posixpath.expanduser("~/"), "/")
249 self.assertEqual(posixpath.expanduser("~/foo"), "/foo")
254 self.assertIsInstance(posixpath.expanduser("~/"), str)
255 self.assertIsInstance(posixpath.expanduser(b"~/"), bytes)
258 if posixpath.expanduser("~") != '/':
260 posixpath.expanduser("~") + "/",
261 posixpath.expanduser("~/")
264 posixpath.expanduser(b"~") + b"/",
265 posixpath.expanduser(b"~/")
267 self.assertIsInstance(posixpath.expanduser("~root/"), str)
268 self.assertIsInstance(posixpath.expanduser("~foo/"), str)
269 self.assertIsInstance(posixpath.expanduser(b"~root/"), bytes)
270 self.assertIsInstance(posixpath.expanduser(b"~foo/"), bytes)
279 self.assertEqual(posixpath.expanduser("~"), home)
288 self.assertEqual(posixpath.expanduser(path), path)
662 self.assertPathEqual(self.path.expanduser)