'Vars removed from global overrides are removed from inventory'

def test_global_overrides_delete_when_merge(self):

    self.add_global_override('foo', 'bar')
    di._parse_global_variables({}, self.inventory, self.user_defined_config)
    self.remove_global_override('foo')
    di._parse_global_variables({}, self.inventory, self.user_defined_config)
    self.assertNotIn('foo', self.inventory['all']['vars'], 'foo    var    not    removed    from    group_vars_all')
