def test_safe_rstrip(self):
    value = '/test/'
    rstripped_value = '/test'
    not_rstripped = '/'
    self.assertEqual(rstripped_value, utils.safe_rstrip(value, '/'))
    self.assertEqual(not_rstripped, utils.safe_rstrip(not_rstripped, '/'))
def test_safe_rstrip(self):
    value = '/test/'
    rstripped_value = '/test'
    not_rstripped = '/'
    self.assertEqual(rstripped_value, utils.safe_rstrip(value, '/'))
    self.assertEqual(not_rstripped, utils.safe_rstrip(not_rstripped, '/'))