'verifies that the GalaxyCLI object\'s api is created and that execute() is called.'

def test_run(self):

    gc = GalaxyCLI(args=['install', '--ignore-errors', 'imaginary_role'])
    gc.parse()
    with patch.object(ansible.cli.CLI, 'execute', return_value=None) as mock_ex:
        with patch.object(ansible.cli.CLI, 'run', return_value=None) as mock_run:
            gc.run()
            self.assertEqual(mock_run.call_count, 1)
            self.assertTrue(isinstance(gc.api, ansible.galaxy.api.GalaxyAPI))
            self.assertEqual(mock_ex.call_count, 1)
