Home | Trees | Indices | Help |
|
---|
|
object --+ | base.structure.StructureBase --+ | object --+ | | | base.common.Parser --+ | base.structure.ParseableStructure --+ | base.structure.Structure --+ | object --+ | | | base.structure.RestrictionMixin --+ | procdef.ProcDef --+ | procdef.ProcApp --+ | object --+ | | | unittest.case.TestCase --+ | RegTest
A regression test.
Nested Classes | |
Inherited from Inherited from |
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Class Methods | |
Inherited from Inherited from |
Class Variables | |
name_ =
hash(x) |
|
requiredType =
hash(x) |
|
formalArgs =
|
|
runCount = 1 hash(x) |
|
additionalNamesForProcs =
|
|
XPATH_NAMESPACE_MAP =
|
|
attrSeq =
|
|
managedAttrs =
|
|
Inherited from Inherited from Inherited from |
Properties | |
description | |
rd | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
returns headers and content when retrieving the resource at url. Sets the headers and data attributes of the test instance. |
arranges for the value of the location header to become the base URL of the next test. addToPath, if given, is appended to the location header. If no location header was provided, the test fails. All this of course only works for tests in sequential regSuites. |
checks that all its arguments are found within content.
|
checks that all its arguments are *not* found within content.
|
checks whether the request came back with expectedStatus.
|
checks whether the returned data are XSD valid. This uses DaCHS built-in XSD validator with the built-in schema files; it hence will in general not retrieve schema files from external sources.
|
checks an xpath assertion. path is an xpath (as understood by lxml), with namespace prefixes statically mapped; there's currently v2 (VOTable 1.2), v1 (VOTable 1.1), v (whatever VOTable version is the current DaCHS default), h (the namespace of the XHTML elements DaCHS generates), and o (OAI-PMH 2.0). If you need more prefixes, hack the source and feed back your changes (monkeypatching self.XPATH_NAMESPACE_MAP is another option). path must match exactly one element. assertions is a dictionary mapping attribute names to their expected value. Use the key None to check the element content, and match for None if you expect an empty element. If you need an RE match rather than equality, there's EqualingRE in your code's namespace.
|
returns the equivalent of tree.xpath(path) for an lxml etree of the current document or in element, if passed in. This uses the same namespace conventions as assertXpath.
|
checks that header key has value in the response headers. keys are compared case-insensitively, values are compared literally.
|
interprets data as a VOTable and returns the first row as a dictionary In test use, make sure the VOTable returned is sorted, or you will get randomly failing tests. Ideally, you'll constrain the results to just one match; database-querying cores (which is where order is an issue) also honor _DBOPTIONS_ORDER).
|
parses the first table in a result VOTable and returns the contents as a sequence of dictionaries.
|
Class Variable Details |
additionalNamesForProcs
|
XPATH_NAMESPACE_MAP
|
attrSeq
|
managedAttrs
|
Property Details |
description
|
rd
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |