Exemplo n.º 1
0
 def test_false_direct_parent(self):
     self.assertNotEqual(mux.path_parent('/os/linux'), '/')
Exemplo n.º 2
0
 def test_on_root(self):
     self.assertEqual(mux.path_parent('/'), '/')
Exemplo n.º 3
0
 def test_direct_parent(self):
     self.assertEqual(mux.path_parent('/os/linux'), '/os')
Exemplo n.º 4
0
 def test_empty_string(self):
     self.assertEqual(mux.path_parent(''), '/')
Exemplo n.º 5
0
 def test_false_direct_parent(self):
     self.assertNotEqual(mux.path_parent('/os/linux'), '/')
Exemplo n.º 6
0
 def test_direct_parent(self):
     self.assertEqual(mux.path_parent('/os/linux'), '/os')
Exemplo n.º 7
0
 def test_on_root(self):
     self.assertEqual(mux.path_parent('/'), '/')
Exemplo n.º 8
0
 def test_empty_string(self):
     self.assertEqual(mux.path_parent(''), '/')