def test_unicode_criteria_with_charset(self): self.client.gmail_search('foo \u2639', 'utf-8') self.check_call([ b'CHARSET', b'utf-8', b'X-GM-RAW', _quoted(b'"foo \xe2\x98\xb9"') ])
def test_quoting(self): self.check(['foo bar'], None, [_quoted(b'"foo bar"')])
def test_quoting(self): self.client.search(['TEXT', 'foo bar']) self.check_call([b'TEXT', _quoted(b'"foo bar"')])
def test_unicode_criteria_with_charset(self): self.client.search(['FOO', '\u2639'], 'utf-8') self.check_call( [b'CHARSET', b'utf-8', b'FOO', _quoted(b'\xe2\x98\xb9')])
def test_unicode_criteria_with_charset(self): self.client.search(['FOO', '\u2639'], 'utf-8') self.check_call([b'CHARSET', b'utf-8', b'FOO', _quoted(b'\xe2\x98\xb9')])
def test_unicode_criteria_with_charset(self): self.client.gmail_search('foo \u2639', 'utf-8') self.check_call([b'CHARSET', b'utf-8', b'X-GM-RAW', _quoted(b'"foo \xe2\x98\xb9"')])