offlineimap rev 500

"Automatic Subversion Change Mailer" <[email protected]> Wed, 16 Jul 2003 14:43:17 -0500 (CDT)
Newsgroups gmane.mail.imap.offlineimap.subversion
Message-ID <[email protected]>
You are receiving this message because
all commits get sent to this address.

Author: jgoerzen
Date: 2003-07-16 14:42:50 -0500 (Wed, 16 Jul 2003)
New Revision: 500

Modified:
  imaplib/head/imap2/parser/grammarTest.py
  imaplib/head/imap2/parser/imapTest.py
  imaplib/head/runtests.py

Log:
Renamed the tests too


Diff:
Copied: imaplib/head/imap2/parser/grammarTest.py (from rev 499, imaplib/head/imap2/parser/imapTest.py)

Deleted: imaplib/head/imap2/parser/imapTest.py
==============================================================================
--- imaplib/head/imap2/parser/imapTest.py	2003-07-16 19:38:49 UTC (rev 499)
+++ imaplib/head/imap2/parser/imapTest.py	2003-07-16 19:42:50 UTC (rev 500)
@@ -1,49 +0,0 @@
-# Implementation of grammar from RFC3501
-# $Id: imap.g 494 2003-07-16 18:38:03Z jgoerzen $
-
-# COPYRIGHT #
-# Copyright (C) 2002 John Goerzen
-#
-#    This program is free software; you can redistribute it and/or modify
-#    it under the terms of the GNU General Public License as published by
-#    the Free Software Foundation; either version 2 of the License, or
-#    (at your option) any later version.
-#
-#    This program is distributed in the hope that it will be useful,
-#    but WITHOUT ANY WARRANTY; without even the implied warranty of
-#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#    GNU General Public License for more details.
-#
-#    You should have received a copy of the GNU General Public License
-#    along with this program; if not, write to the Free Software
-#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-# END OF COPYRIGHT #
-
-import unittest
-import GrammarClass
-
-def parse(text, goal = 'goal'):
-    return GrammarClass.parse('goal', text)
-
-class ParseTestCase(unittest.TestCase):
-    # These examples are from the RFC.
-    def test_ex_Connect(self):
-        result = parse("* OK IMAP4rev1 Service Ready\r\n", 'goal_connect')
-        self.assertEquals(result, [])
-
-    def test_ex_Login(self):
-        result = parse("a001 OK LOGIN completed\r\n")
-        self.assertEquals(result, [{'state': {'result': 'OK', 'detail': {'text': 'LOGIN completed'}}, 'tag': 'a001'}])
-
-    def test_ex_Select(self):
-        result = parse("* 18 EXISTS\r\n" + \
-                       "* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)\r\n"+\
-                       "* 2 RECENT\r\n" + \
-                       "* OK [UNSEEN 17] Message 17 is the first unseen message\r\n" + \
-                       "* OK [UIDVALIDITY 3857529045] UIDs valid\r\n" +
-                       "a002 OK [READ-WRITE] SELECT completed\r\n")
-        self.assertEquals(result, [{'state': {'result': 'OK', 'detail': {'text': 'SELECT completed', 'code': ['READ-WRITE']}}, 'tag': 'a002'}, {'EXISTS': 18L}, {'flags': ['\\Answered', '\\Flagged', '\\Deleted', '\\Seen', '\\Draft']}, {'RECENT': 2L}, {'result': 'OK', 'detail': {'text': 'Message 17 is the first unseen message', 'code': ['UNSEEN', 17L]}}, {'result': 'OK', 'detail': {'text': 'UIDs valid', 'code': ['UIDVALIDITY', 3857529045L]}}])
-
-    def test_Courier_Connect(self):
-        result = parse("* OK [CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc.  See COPYING for distribution information.\r\n", "goal_connect")
-        self.assertEquals(result, [])

Modified: imaplib/head/runtests.py
==============================================================================
--- imaplib/head/runtests.py	2003-07-16 19:38:49 UTC (rev 499)
+++ imaplib/head/runtests.py	2003-07-16 19:42:50 UTC (rev 500)
@@ -21,7 +21,7 @@
 # sys.path.insert("-1", "..")
 
 import unittest
-import imap2.parser.imapTest
+import imap2.parser.grammarTest
 
 def suite():
     tests = [imap2.parser.imapTest \