[Python-checkins] r54865 - in sandbox/trunk/pep0: pep0/pep.py test_pep0.py (original) (raw)

brett.cannon python-checkins at python.org
Wed Apr 18 06:07:00 CEST 2007


Author: brett.cannon Date: Wed Apr 18 06:06:52 2007 New Revision: 54865

Modified: sandbox/trunk/pep0/pep0/pep.py sandbox/trunk/pep0/test_pep0.py Log: Beginnings of a PEP class. Testing of init is not complete, but initial coding of the method is done.

Modified: sandbox/trunk/pep0/pep0/pep.py

--- sandbox/trunk/pep0/pep0/pep.py (original) +++ sandbox/trunk/pep0/pep0/pep.py Wed Apr 18 06:06:52 2007 @@ -4,6 +4,7 @@ * Flesh out PEP class.

""" +import re

class PEP(object):

@@ -15,12 +16,75 @@ "Active", "Draft")

 def __init__(self, metadata_dict):

@@ -80,30 +144,5 @@ finished.append(pep) return meta, info, accepted, open_, finished, empty, dead

-def handle_author(data):

Modified: sandbox/trunk/pep0/test_pep0.py

--- sandbox/trunk/pep0/test_pep0.py (original) +++ sandbox/trunk/pep0/test_pep0.py Wed Apr 18 06:06:52 2007 @@ -136,29 +136,30 @@ """Test the PEP class.""" - def test_valid_init(self): - # Make sure that a PEP instance can be created from a dict with valid - # entries. - pass

@contextmanager def test_file(path): @@ -304,6 +305,7 @@ def test_main(): test_support.run_unittest( ParseTests, + PEPClassTests, )


More information about the Python-checkins mailing list