def test_without_trailing_slash(self): """With no trailing slash, the string should be returned as is.""" result = config._validate_rstripped_str('this/should/stay/the/same') assert result == 'this/should/stay/the/same'
def test_with_trailing_slash(self): """Ensure that a trailing slash is removed.""" result = config._validate_rstripped_str('this/should/be/rstripped/') assert result == 'this/should/be/rstripped'