

def test_check_dhcp_resp_master_mac(self):
    kwargs = {
        'task_uuid': self.task.uuid,
        'status': 'ready',
        'nodes': [{
            'uid': self.node1.id,
            'status': 'ready',
            'data': [{
                'mac': settings.ADMIN_NETWORK['mac'],
                'server_id': '10.20.0.157',
                'yiaddr': '10.20.0.133',
                'iface': 'eth0',
            }],
        }, {
            'uid': self.node2.id,
            'status': 'ready',
            'data': [{
                'mac': settings.ADMIN_NETWORK['mac'],
                'server_id': '10.20.0.20',
                'yiaddr': '10.20.0.131',
                'iface': 'eth0',
            }],
        }],
    }
    self.receiver.check_dhcp_resp(**kwargs)
    self.db.flush()
    self.db.refresh(self.task)
    self.assertEqual(self.task.status, 'ready')
    self.assertEqual(self.task.result, {
        
    })

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_rpc_consumer.py TestDhcpCheckTask.test_check_dhcp_resp_master_mac/original