def test_at(self): ''' Tests encoding an @ symbol ''' test = 'at@here' result = quote_rfc3986(test) self.assertEqual(result, 'at%40here')
def test_none(self): ''' Test encoding a basic string with no special characters ''' test = 'this_is-a~test' result = quote_rfc3986(test) self.assertEqual(result, test)
def test_space(self): ''' Tests encoding a string with a space ''' test = 'space here' result = quote_rfc3986(test) self.assertEqual(result, 'space%20here')