コード例 #1
0
ファイル: test_os.py プロジェクト: vitiral/cloudtb
 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
ファイル: test_os.py プロジェクト: vitiral/cloudtb
 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)