From b624d75b18b6644adb1e783e1032cbf74da409e7 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Wed, 1 Jul 2015 16:11:59 +1200 Subject: Update documentation --- ....tests.test_compat.TestUnicodeOutputStream.html | 550 +++++++++++++++++++++ 1 file changed, 550 insertions(+) create mode 100644 apidocs/testtools.tests.test_compat.TestUnicodeOutputStream.html (limited to 'apidocs/testtools.tests.test_compat.TestUnicodeOutputStream.html') diff --git a/apidocs/testtools.tests.test_compat.TestUnicodeOutputStream.html b/apidocs/testtools.tests.test_compat.TestUnicodeOutputStream.html new file mode 100644 index 0000000..b752a8f --- /dev/null +++ b/apidocs/testtools.tests.test_compat.TestUnicodeOutputStream.html @@ -0,0 +1,550 @@ + + + + + testtools.tests.test_compat.TestUnicodeOutputStream : API documentation + + + + + + + + + +
+ + + +
+ +
+ +
+
Test wrapping output streams so they work with arbitrary unicode
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodsetUpUndocumented
Methodtest_no_encoding_becomes_asciiA stream with no encoding attribute gets ascii/replace strings
Methodtest_encoding_as_none_becomes_asciiA stream with encoding value of None gets ascii/replace strings
Methodtest_bogus_encoding_becomes_asciiA stream with a bogus encoding gets ascii/replace strings
Methodtest_partial_encoding_replaceA string which can be partly encoded correctly should be
Methodtest_unicode_encodings_wrapped_when_str_is_not_unicodeA unicode encoding is wrapped but needs no error handler
Methodtest_unicode_encodings_not_wrapped_when_str_is_unicodeUndocumented
Methodtest_stringioA StringIO object should maybe get an ascii native str type
Methodtest_io_stringioUndocumented
Methodtest_io_bytesioUndocumented
Methodtest_io_textwrapperUndocumented
+ +

+ Inherited from TestCase: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Instance Variableexception_handlersExceptions to catch from setUp, runTest and +tearDown. This list is able to be modified at any time and consists of +(exception_class, handler(case, result, exception_value)) pairs.
Instance Variableforce_failureForce testtools.RunTest to fail the test after the +test has completed.
Class Variablerun_tests_withA factory to make the RunTest to run tests with. +Defaults to RunTest. The factory is expected to take a test case +and an optional list of exception handlers.
Method__init__Construct a TestCase.
Method__eq__Undocumented
Method__repr__Undocumented
MethodaddDetailAdd a detail to be reported with this test's outcome.
MethodgetDetailsGet the details dict that will be reported with this test's outcome.
MethodpatchMonkey-patch 'obj.attribute' to 'value' while the test is running.
MethodshortDescriptionUndocumented
MethodskipTestCause this test to be skipped.
MethodaddCleanupAdd a cleanup function to be called after tearDown.
MethodaddOnExceptionAdd a handler to be called when an exception occurs in test code.
MethodassertEqualAssert that 'expected' is equal to 'observed'.
MethodassertInAssert that needle is in haystack.
MethodassertIsNoneAssert that 'observed' is equal to None.
MethodassertIsNotNoneAssert that 'observed' is not equal to None.
MethodassertIsAssert that 'expected' is 'observed'.
MethodassertIsNotAssert that 'expected' is not 'observed'.
MethodassertNotInAssert that needle is not in haystack.
MethodassertIsInstanceUndocumented
MethodassertRaisesNo summary
MethodassertThatAssert that matchee is matched by matcher.
MethodaddDetailUniqueNameAdd a detail to the test, but ensure it's name is unique.
MethodexpectThatCheck that matchee is matched by matcher, but delay the assertion failure.
MethoddefaultTestResultUndocumented
MethodexpectFailureCheck that a test fails in a particular way.
MethodgetUniqueIntegerGet an integer unique to this test.
MethodgetUniqueStringGet a string unique to this test.
MethodonExceptionCalled when an exception propogates from test code.
MethodrunUndocumented
MethoduseFixtureUse fixture in a test case.
MethodtearDownUndocumented
Method_formatTypesFormat a class or a bunch of classes for display in an error.
Method_add_reasonUndocumented
Method_matchHelperUndocumented
Static Method_report_errorUndocumented
Static Method_report_expected_failureUndocumented
Static Method_report_failureUndocumented
Static Method_report_skipUndocumented
Method_report_tracebackUndocumented
Static Method_report_unexpected_successUndocumented
Method_run_setupRun the setUp function for this test.
Method_run_teardownRun the tearDown function for this test.
Method_get_test_methodUndocumented
Method_run_test_methodRun the test method for this test.
+ + + +
+ +
+ +
+ + + + + + +
+ + def + setUp(self): + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + test_no_encoding_becomes_ascii(self): + +
+
+ +
A stream with no encoding attribute gets ascii/replace strings
+
+
+ + + + + + +
+ + def + test_encoding_as_none_becomes_ascii(self): + +
+
+ +
A stream with encoding value of None gets ascii/replace strings
+
+
+ + + + + + +
+ + def + test_bogus_encoding_becomes_ascii(self): + +
+
+ +
A stream with a bogus encoding gets ascii/replace strings
+
+
+ + + + + + +
+ + def + test_partial_encoding_replace(self): + +
+
+ +
A string which can be partly encoded correctly should be
+
+
+ + + + + + +
+ @testtools.skipIf(str_is_unicode, 'Tests behaviour when str is not unicode')
+ def + test_unicode_encodings_wrapped_when_str_is_not_unicode(self): + +
+
+ +
A unicode encoding is wrapped but needs no error handler
+
+
+ + + + + + +
+ @testtools.skipIf(str_is_unicode, 'Tests behaviour when str is unicode')
+ def + test_unicode_encodings_not_wrapped_when_str_is_unicode(self): + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + test_stringio(self): + +
+
+ +
A StringIO object should maybe get an ascii native str type
+
+
+ + + + + + +
+ + def + test_io_stringio(self): + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + test_io_bytesio(self): + +
+
+ +
Undocumented
+
+
+ + + + + + +
+ + def + test_io_textwrapper(self): + +
+
+ +
Undocumented
+
+
+ +
+
+ API Documentation for testtools, generated by pydoctor at 2015-07-01 16:11:28. +
+ +
+ + \ No newline at end of file -- cgit v1.2.1