Ticket 48303 - Fix lib389 broken tests
List of fixes through all the test suites:
- Remove SER_DEPLOYED_DIR assignment, because now it is
in __init__.py by default.
- Remove "Created on" block, because git contains this information.
- Add Red Hat copyright block.
- Add more logging.
- Add more docstrings.
- Fix the imports to the correct ones.
- Fix expected exception assertions using pytest.raises.
- Refactore code to the pytest compatibility.
tests/dirsrv_test.py:
- Refactor nearly whole test suite logic, because previous one
didn't have the proper test coverage.
tests/mappingTree_test.py:
- Remove _add_user and _mod_user functions,
because they are used nowhere.
tests/replica_test.py:
- Remove the test_delete test case, because replica.delete() is
obsolete, use replica.enableReplication() instead.
- Remove big block of commented code at the bottom.
- Add tests to the test_disableReplication test case,
now it is implimented.
tests/utils_test.py:
- Fix dictionary keys to the right ones, depends on what keys are
expected in the source code. For example: 'newhost' to 'hostname'.
https://fedorahosted.org/389/ticket/48303
Review by: mreynolds (Thanks!)