Test results

Failed tests: 0 of 15

Range selection tests

Comma separated numbers are parsed. Accepts a comma followed by a space as delimiter. Accepts a mix of commas and spaces as delimiter. Exclusion is parsed. Mixed ranges are parsed. Raises exception on open python ranges. Precedence is observed. Python ranges are parsed. Range is parsed. Python stride syntax is accepted. Single number is parsed. Single exclusion is valid. Result is sorted. Space separated numbers are parsed. Raises exception on invalid ranges.

Invocation

Run the test script on command line to get detailed error descriptions. Without the debug parameter, you will get reST output.

f_tests.py debug

Documentation

class f_tests.RestFormatter(stream=<open file '<stderr>', mode 'w' at 0x1032e11e0>, descriptions=True, verbosity=1, failfast=False, buffer=False, resultclass=None)[source]

Methods

_makeResult()[source]
run(suite, doc)[source]
class f_tests.RestTestResult[source]

Methods

__init__()[source]
addError(test, err)[source]
addFailure(test, err)[source]
addSuccess(test)[source]
getDescription(test)[source]
startTest(test)[source]
class f_tests.TestRanges(methodName='runTest')[source]

Range selection tests

Methods

setUp()[source]
test_comma()[source]

Comma separated numbers are parsed.

test_commaspace()[source]

Accepts a comma followed by a space as delimiter.

test_commaspacemix()[source]

Accepts a mix of commas and spaces as delimiter.

test_exclusion()[source]

Exclusion is parsed.

test_mixed_range()[source]

Mixed ranges are parsed.

test_nonnumeric()[source]

Raises exception on open python ranges.

test_precedence()[source]

Precedence is observed.

test_python_range()[source]

Python ranges are parsed.

test_range()[source]

Range is parsed.

test_range_stride()[source]

Python stride syntax is accepted.

test_single()[source]

Single number is parsed.

test_single_exclusion()[source]

Single exclusion is valid.

test_sorted()[source]

Result is sorted.

test_space()[source]

Space separated numbers are parsed.

test_unique()[source]

Raises exception on invalid ranges.

Table Of Contents

Previous topic

Common information

This Page