Esempio n. 1
0
 def test_relative_nonupref(self):
     ''' Make sure must_not_be_upref() recognizes nonupref relative paths '''
     string = ''.join(['foo', os.sep, 'bar'])
     self.assertEqual(utils_path.must_not_be_upref(string), string)
Esempio n. 2
0
 def test_absolute(self):
     ''' Make sure must_not_be_upref() recognizes absolute paths '''
     string = ''.join([os.sep, 'foo', os.sep, 'bar'])
     self.assertEqual(utils_path.must_not_be_upref(string), string)