]> khamidou — GitHub mirrors - imapclient.git/commitdiff
added missing data test
authorMenno Smits <menno@freshfoo.com>
Mon, 28 Dec 2009 06:22:22 +0000 (06:22 +0000)
committerMenno Smits <menno@freshfoo.com>
Mon, 28 Dec 2009 06:22:22 +0000 (06:22 +0000)
imapclient/test/test_response_parser.py

index 0660c230747d855d0f2af7e14be3d8a7a2beac8a..301e8aa84e6d1133dc3e6aba20d9a357ba9d09ff 100644 (file)
@@ -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,