def test_false_direct_parent(self): self.assertNotEqual(mux.path_parent('/os/linux'), '/')
def test_on_root(self): self.assertEqual(mux.path_parent('/'), '/')
def test_direct_parent(self): self.assertEqual(mux.path_parent('/os/linux'), '/os')
def test_empty_string(self): self.assertEqual(mux.path_parent(''), '/')
def test_false_direct_parent(self): self.assertNotEqual(mux.path_parent("/os/linux"), "/")
def test_direct_parent(self): self.assertEqual(mux.path_parent("/os/linux"), "/os")
def test_on_root(self): self.assertEqual(mux.path_parent("/"), "/")
def test_empty_string(self): self.assertEqual(mux.path_parent(""), "/")