Pull request #562: CAS-13798
Merge in CASA/casa6 from CAS-13798 to master
* commit 'd3f81771d8252ccee0215e3a4c57b5827e519e4f':
Small fix to setUp of tests.
Removed casa5 code from task_flagmanager.py
Replaced lociteritems and lociterkeys functions with dict.items and dict.keys
Replaced lociteritems function with dict.items()
Fixed deprecation warning on == sign in flagdata task. More cleanup of test_task_flagdata
Removed lociteritems function that was only needed for python 2/3 compatibility and replaced calls with dict.items(). More formatting in test_flaghelper.py to become more pythonic.
Cleaned up left-over files and added proper tearDown methods.
Removed left-over is_python3
Removed the cleanup outdated class and replaced it with tearDown and tearDownClass methods. Add left-over data to tearDown methods.
Removed casa5 from flaghelper.py. Fixed deprecation warning. Refactored some parts of the code for better readability. Copyed test_flaghelper from casa5 to casa6 and updated it.