- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 22 Jul 2008 17:23:26 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/misc/testsuite/lib
In directory hutz:/tmp/cvs-serv27850/lib
Modified Files:
TestCase.py ValidatorsAPIs.py
Log Message:
python2.4-friendly class declarations
Index: TestCase.py
===================================================================
RCS file: /sources/public/validator/misc/testsuite/lib/TestCase.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- TestCase.py 28 Mar 2008 19:36:48 -0000 1.2
+++ TestCase.py 22 Jul 2008 17:23:23 -0000 1.3
@@ -62,7 +62,7 @@
self.assertEqual(results_filtered, self.expectResults)
-class ValidatorTestSuite():
+class ValidatorTestSuite:
"""A Validator test suite is a flattened tree of test collections and test cases"""
def __init__(self, checker=None):
if checker == None:
Index: ValidatorsAPIs.py
===================================================================
RCS file: /sources/public/validator/misc/testsuite/lib/ValidatorsAPIs.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ValidatorsAPIs.py 27 Feb 2008 20:20:47 -0000 1.1
+++ ValidatorsAPIs.py 22 Jul 2008 17:23:24 -0000 1.2
@@ -16,7 +16,7 @@
import urllib, urllib2
import xml.etree.cElementTree as ET
-class W3CValidatorHTTP():
+class W3CValidatorHTTP:
"""Fetch and parse results from a validator using the W3C Validator SOAP API"""
def __init__(self, check_URI=None):
if check_URI != None:
@@ -56,7 +56,7 @@
def test_init(self):
"""Test initializing a client to W3C validator HTTP results"""
default_checker = W3CValidatorHTTP()
- self.assertEqual(default_checker.check_URI, 'http://qa-dev.w3.org/wmvs/HEAD/check?uri=%(URI)s;output=soap12')
+ self.assertEqual(default_checker.check_URI, 'http://qa-dev.w3.org/wmvs/HEAD/check?uri=%(URI)s')
def test_contact_default(self):
"""Test Contacting the default validator instance"""
Received on Tuesday, 22 July 2008 17:23:59 UTC