Ticket #6362 enhancement new
ExampleTestBase class for unit testing example code
|Reported by:||rwall||Owned by:||rwall|
(diff, github, buildbot, log)
This is part of the Twisted Better Examples plan:
The writing standard suggests that "example code should conform to the coding standard" which implies that examples should be unit tested just like the main twisted code.
One suggestion was to add something like Divmod ExampleTestBase, which imports the example scripts so that their components can be unit tested.
This has already been added to some of the twisted.names examples tests.
But it should be moved somewhere central eg
...where it can be used by tests for all Twisted examples.
In the same branch, add / update tests for twisted.names examples to demonstrate the new class and its central location.