def test_version_command(self):
        # Set up output from the /config/ endpoint in Tower and
        # invoke the command.
        with client.test_mode as t:
            t.register_json('/config/', {'version': '4.21'})
            result = self.runner.invoke(version)

            # Verify that we got the output we expected.
            self.assertEqual(result.exit_code, 0)
            self.assertEqual(
                result.output.strip(),
                'Ansible Tower 4.21\nTower CLI %s' % tower_cli.__version__,
            )
Establish that the version command returns the output we
dataset/ETHPy150Open ansible/tower-cli/tests/test_commands_version.py/VersionTests.test_version_command