def test_path_not_ends_with(self): p = Path("/a/b/cdef") self.assertFalse(p.endswith("eg"))
def test_path_ends_with(self): p = Path("/a/b/cdef") self.assertTrue(p.endswith("ef"))