示例#1
0
    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"')
        ])
示例#2
0
 def test_quoting(self):
     self.check(['foo bar'], None, [_quoted(b'"foo bar"')])
示例#3
0
 def test_quoting(self):
     self.client.search(['TEXT', 'foo bar'])
     self.check_call([b'TEXT', _quoted(b'"foo bar"')])
示例#4
0
 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')])
示例#5
0
 def test_quoting(self):
     self.client.search(['TEXT', 'foo bar'])
     self.check_call([b'TEXT', _quoted(b'"foo bar"')])
示例#6
0
 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')])
示例#7
0
    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"')])
示例#8
0
 def test_quoting(self):
     self.check(['foo bar'], None, [_quoted(b'"foo bar"')])