Use TestCase.get_credentials() where possible.