'Integration test making sure the whole script fails.'

def test_group_with_hosts_and_children_fails(self):

    env = self._create_bad_env(self.env)
    config = get_config()
    kwargs = {'load_environment': mock.DEFAULT, 'load_user_configuration': mock.DEFAULT}
    with mock.patch.multiple('osa_toolkit.filesystem', **kwargs) as mocks:
        mocks['load_environment'].return_value = env
        mocks['load_user_configuration'].return_value = config
        with self.assertRaises(di.GroupConflict) as context:
            get_inventory()
