code: def test_call_with_buy_order(mock_order_class, mock_exchange_class):
      exchange = mock_exchange_class.return_value
      exchange.quote_price = mock.Mock(return_value=7000.00)
  
      order = mock_order_class.return_value
      order.pair = USD / BTC
      order.side = TradeSide.BUY
  
      criteria = Limit(limit_price=6800.00)
      assert not criteria(order, exchange)
  
      criteria = Limit(limit_price=7000.00)
      assert criteria(order, exchange)
  
      criteria = Limit(limit_price=7200.00)
      assert criteria(order, exchange)
  
imports: import unittest.mock
  from tensortrade.oms.orders.criteria import Limit
  from tensortrade.oms.instruments import USD, BTC
  from tensortrade.oms.orders import TradeSide
label_desc: Use image node_id 2 for calling a global function with example usage: test_call_with_buy_order(mock_order_class, mock_exchange_class) without return types