def test_relative_path_does_not_contain(self):
        "Test relative path does not contain different path."
        self.assertFalse(path_contains(other_rel_path, rel_path))
        self.assertFalse(path_contains(other_rel_path, rel_path_to))
        self.assertFalse(path_contains(other_rel_path, rel_path_to_somewhere))

        self.assertFalse(path_contains(rel_path, other_rel_path))
        self.assertFalse(path_contains(rel_path_to, other_rel_path))
        self.assertFalse(path_contains(rel_path_to_somewhere, other_rel_path))
    def test_absolute_path_does_not_contain(self):
        "Test absolute path does not contain different path."
        self.assertFalse(path_contains(other_abs_path, abs_path))
        self.assertFalse(path_contains(other_abs_path, abs_path_to))
        self.assertFalse(path_contains(other_abs_path, abs_path_to_somewhere))

        self.assertFalse(path_contains(abs_path, other_abs_path))
        self.assertFalse(path_contains(abs_path_to, other_abs_path))
        self.assertFalse(path_contains(abs_path_to_somewhere, other_abs_path))
 def test_relative_path_does_not_contain_absolute(self):
     "Test relative path does not contain absolute path."
     self.assertFalse(path_contains(rel_path, abs_path_to))
     self.assertFalse(path_contains(rel_path, Path('/') / rel_path_to))
 def test_relative_path_contains_str(self):
     "Test relative path contains another string path."
     self.assertTrue(path_contains(rel_path, str(rel_path_to)))
     self.assertTrue(path_contains(rel_path, str(rel_path_to_somewhere)))
 def test_absolute_path_does_not_contain_relative(self):
     "Test absolute path does not contain relative path."
     self.assertFalse(path_contains(abs_path, rel_path_to))
     self.assertFalse(path_contains(abs_path, str(abs_path_to)[1:]))
 def test_absolute_path_contains_str(self):
     "Test absolute path contains another string path."
     self.assertTrue(path_contains(abs_path, str(abs_path_to)))
     self.assertTrue(path_contains(abs_path, str(abs_path_to_somewhere)))