Ejemplo n.º 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"')
        ])
Ejemplo n.º 2
0
 def test_quoting(self):
     self.check(['foo bar'], None, [_quoted(b'"foo bar"')])
Ejemplo n.º 3
0
 def test_quoting(self):
     self.client.search(['TEXT', 'foo bar'])
     self.check_call([b'TEXT', _quoted(b'"foo bar"')])
Ejemplo n.º 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')])
Ejemplo n.º 5
0
 def test_quoting(self):
     self.client.search(['TEXT', 'foo bar'])
     self.check_call([b'TEXT', _quoted(b'"foo bar"')])
Ejemplo n.º 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')])
Ejemplo n.º 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"')])
Ejemplo n.º 8
0
 def test_quoting(self):
     self.check(['foo bar'], None, [_quoted(b'"foo bar"')])