Message233887
| Author |
vstinner |
| Recipients |
Arfrever, artifex93, martin.panter, neologix, oquanox, pitrou, serhiy.storchaka, vstinner |
| Date |
2015年01月12日.20:55:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1421096106.26.0.566181670118.issue19777@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
+ def _test_home(self, p):
+ q = self.cls(os.path.expanduser('~'))
+ self.assertEqual(p, q)
+ self.assertEqual(str(p), str(q))
+ self.assertIs(type(p), type(q))
+ self.assertTrue(p.is_absolute())
+
+ def test_home(self):
+ p = self.cls.home()
+ self._test_home(p)
Why are you using a submethod _test_home()? |
|