@@ -39,34 +39,34 @@ class IdIndexUrlTestCase(SimpleUrlTestCase):
3939 def testUrls (self ):
4040 self .doTestUrls (__file__ )
4141
42- class IndexTestCase (unittest .TestCase , RealDatabaseTest ):
43- def setUp (self ):
44- self .setUpRealDatabase ()
45- def tearDown (self ):
46- self .tearDownRealDatabase ()
42+ # class IndexTestCase(unittest.TestCase, RealDatabaseTest):
43+ # def setUp(self):
44+ # self.setUpRealDatabase()
45+ # def tearDown(self):
46+ # self.tearDownRealDatabase()
4747
48- def testAllId (self ):
49- print " Testing all_id.txt generation"
50- c = Client ()
51- response = c .get ('/drafts/_test/all_id.txt' )
52- self .assertEquals (response .status_code , 200 )
53- content = response .content
54- # Test that correct version number is shown for couple of old drafts
55- self .assert_ (content .find ("draft-ietf-tls-psk-09" ) >= 0 )
56- self .assert_ (content .find ("draft-eronen-eap-sim-aka-80211-00" ) >= 0 )
57- # Since all_id.txt contains all old drafts, it should never shrink
58- lines = content .split ("\n " )
59- self .assert_ (len (lines ) > 18000 )
60- # Test that the lines look OK and have correct number of tabs
61- r = re .compile (r'^(draft-\S*-\d\d)\t(\d\d\d\d-\d\d-\d\d)\t([^\t]+)\t([^\t]*)$' )
62- for line in lines :
63- if ((line == "" ) or
64- (line == "Internet-Drafts Status Summary" ) or
65- (line == "Web version is available at" ) or
66- (line == "https://datatracker.ietf.org/public/idindex.cgi" )):
67- pass
68- elif r .match (line ):
69- pass
70- else :
71- self .fail ("Unexpected line \" " + line + "\" " )
72- print "OK (all_id.txt)"
48+ # def testAllId(self):
49+ # print " Testing all_id.txt generation"
50+ # c = Client()
51+ # response = c.get('/drafts/_test/all_id.txt')
52+ # self.assertEquals(response.status_code, 200)
53+ # content = response.content
54+ # # Test that correct version number is shown for couple of old drafts
55+ # self.assert_(content.find("draft-ietf-tls-psk-09") >= 0)
56+ # self.assert_(content.find("draft-eronen-eap-sim-aka-80211-00") >= 0)
57+ # # Since all_id.txt contains all old drafts, it should never shrink
58+ # lines = content.split("\n")
59+ # self.assert_(len(lines) > 18000)
60+ # # Test that the lines look OK and have correct number of tabs
61+ # r = re.compile(r'^(draft-\S*-\d\d)\t(\d\d\d\d-\d\d-\d\d)\t([^\t]+)\t([^\t]*)$')
62+ # for line in lines:
63+ # if ((line == "") or
64+ # (line == "Internet-Drafts Status Summary") or
65+ # (line == "Web version is available at") or
66+ # (line == "https://datatracker.ietf.org/public/idindex.cgi")):
67+ # pass
68+ # elif r.match(line):
69+ # pass
70+ # else:
71+ # self.fail("Unexpected line \""+line+"\"")
72+ # print "OK (all_id.txt)"
0 commit comments