示例#1
0
 def test_nouser(self):
     '''when there is no user, the added feature has no impact'''
     plist = ['', 'foo', 'bar', 'zaz']
     expected = os.path.sep.join(plist)
     result = abspath(expected)
     self.assertEqual(expected, result)
示例#2
0
 def test_nouser_nonroot(self):
     plist = ['foo', 'bar', 'zaz']
     path = os.path.sep.join(plist)
     expected = os.path.abspath(path)
     result = abspath(expected)
     self.assertEqual(expected, result)