2.3.15.1.3. test_url.TestUrl

class test_url.TestUrl(methodName='runTest')
__init__(methodName='runTest')

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

__init__([methodName]) Create an instance of the class that will use the named test method when executed.
assertAlmostEqual(first, second[, places, msg]) Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
assertAlmostEquals(first, second[, places, msg]) Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
assertEqual(first, second[, msg]) Fail if the two objects are unequal as determined by the ‘==’
assertEquals(first, second[, msg]) Fail if the two objects are unequal as determined by the ‘==’
assertFalse(expr[, msg]) Fail the test if the expression is true.
assertNotAlmostEqual(first, second[, ...]) Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
assertNotAlmostEquals(first, second[, ...]) Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
assertNotEqual(first, second[, msg]) Fail if the two objects are equal as determined by the ‘==’
assertNotEquals(first, second[, msg]) Fail if the two objects are equal as determined by the ‘==’
assertRaises(excClass, callableObj, *args, ...) Fail unless an exception of class excClass is thrown
assertTrue(expr[, msg]) Fail the test unless the expression is true.
assert_(expr[, msg]) Fail the test unless the expression is true.
countTestCases()
debug() Run the test without collecting errors in a TestResult
defaultTestResult()
fail([msg]) Fail immediately, with the given message.
failIf(expr[, msg]) Fail the test if the expression is true.
failIfAlmostEqual(first, second[, places, msg]) Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
failIfEqual(first, second[, msg]) Fail if the two objects are equal as determined by the ‘==’
failUnless(expr[, msg]) Fail the test unless the expression is true.
failUnlessAlmostEqual(first, second[, ...]) Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
failUnlessEqual(first, second[, msg]) Fail if the two objects are unequal as determined by the ‘==’
failUnlessRaises(excClass, callableObj, ...) Fail unless an exception of class excClass is thrown
id()
run([result])
setUp() Hook method for setting up the test fixture before exercising it.
shortDescription() Returns a one-line description of the test, or None if no
tearDown() Hook method for deconstructing the test fixture after testing it.
test_010() encodePathElement()
test_020() encodeQueryElement()
test_030() urlencode()
test_040() stripElementSlashes()
test_050() joinPathElements()
test_060() normalizeTarget()

/

Related Topics