def test__add_flow_registers_are_replaced(self):
    self.firewall._add_flow(in_port=1, reg_port=1, reg_net=2)
    expected_calls = {'in_port': 1, 'reg{:d}'.format(ovsfw_consts.REG_PORT): 1, 'reg{:d}'.format(ovsfw_consts.REG_NET): 2}
    self.mock_bridge.br.add_flow.assert_called_once_with(**expected_calls)
def test__add_flow_registers_are_replaced(self):
    self.firewall._add_flow(in_port=1, reg_port=1, reg_net=2)
    expected_calls = {'in_port': 1, 'reg{:d}'.format(ovsfw_consts.REG_PORT): 1, 'reg{:d}'.format(ovsfw_consts.REG_NET): 2}
    self.mock_bridge.br.add_flow.assert_called_once_with(**expected_calls)