Пример #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"')])