Change all tests under integration to use pytest idioms.

This PR modifies all OmeroPy integration tests to use pytest idioms such as Python assertions and with for exception handling. Some tests have been fixed along the way and some tidying up has been done. The initial aim of this PR is for the tests to be run as part of a merge build which will help identify differences between local tests and those on hudson.