

@mock.patch('nova.network.security_group.neutron_driver.SecurityGroupAPI.get_instances_security_groups_bindings')
def test_get_security_group_empty_for_instance(self, neutron_sg_bind_mock):
    servers = [{
        'id': test_security_groups.FAKE_UUID1,
    }]
    neutron_sg_bind_mock.return_value = {
        
    }
    security_group_api = self.controller.security_group_api
    ctx = context.get_admin_context()
    sgs = security_group_api.get_instance_security_groups(ctx, instance_obj.Instance(uuid=test_security_groups.FAKE_UUID1))
    neutron_sg_bind_mock.assert_called_once_with(ctx, ctx, False)
    self.assertEqual([], sgs)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_neutron_security_groups.py TestNeutronSecurityGroupsV21.test_get_security_group_empty_for_instance/VarMisuse@86/173 `servers`->`ctx`