From: Menno Smits Date: Mon, 28 Dec 2009 06:22:22 +0000 (+0000) Subject: added missing data test X-Git-Tag: 0.7~59^2~10 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ca7efd7fd834a29babc195e3fc55b668ad3ded4f;p=imapclient.git added missing data test --- diff --git a/imapclient/test/test_response_parser.py b/imapclient/test/test_response_parser.py index 0660c23..301e8aa 100644 --- a/imapclient/test/test_response_parser.py +++ b/imapclient/test/test_response_parser.py @@ -149,6 +149,10 @@ class TestParseFetchResponse(unittest.TestCase): self.assertRaises(ParseError, parse_fetch_response, '* 2 FETCH WHAT') + def test_missing_data(self): + self.assertRaises(ParseError, parse_fetch_response, '* 2 FETCH') + + def test_simple_pairs(self): self.assertEquals(parse_fetch_response('* 23 FETCH (ABC 123 StUfF "hello")'), {23: {'ABC': 123,