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