Prepare completer for pytest....
Prepare completer for pytest.
use proper unittest class with setup and teardown methods to capture
deprecation warnings; and move support classes and function outside of
the testcase definition.
Make all standalone functions methods.
Beyond this no code change.