Exemplo 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)
Exemplo 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)