class_docstr: Tests for zipline ExecutionStyle classes.
class_docstr_tok: ["Tests","for","zipline","ExecutionStyle","classes","."]
docstr: Test price getters for StopLimitOrder class. Note that the expected
  rounding direction for stop prices is the reverse of that for limit
  prices.
docstr_tok: ["Test","price","getters","for","StopLimitOrder","class",".","Note","that","the","expected","rounding","direction","for","stop","prices","is","the","reverse","of","that","for","limit","prices","."]
code: def test_stop_limit_order_prices(
      self,
      price,
      expected_limit_buy_or_stop_sell,
      expected_limit_sell_or_stop_buy,
      asset,
  ):
      """
      Test price getters for StopLimitOrder class. Note that the expected
      rounding direction for stop prices is the reverse of that for limit
      prices.
      """
  
      style = StopLimitOrder(
          price,
          price + 1,
          asset=self.asset_finder.retrieve_asset(asset),
      )
  
      assert_equal(
          expected_limit_buy_or_stop_sell,
          style.get_limit_price(is_buy=True),
      )
      assert_equal(
          expected_limit_sell_or_stop_buy,
          style.get_limit_price(is_buy=False),
      )
  
      assert_equal(
          expected_limit_buy_or_stop_sell + 1,
          style.get_stop_price(is_buy=False),
      )
      assert_equal(
          expected_limit_sell_or_stop_buy + 1,
          style.get_stop_price(is_buy=True),
      )
  
file_path: zipline/tests/test_execution_styles.py
imports: from nose_parameterized import parameterized
  from six.moves import range
  import pandas
  from zipline.errors import BadOrderParameters
  from zipline.finance.execution import LimitOrder, MarketOrder, StopLimitOrder, StopOrder
  from zipline.testing.fixtures import WithLogger, ZiplineTestCase, WithConstantFutureMinuteBarData
  from zipline.testing.predicates import assert_equal
label_desc: Use image node_id 7 for calling the ExecutionStyleTestCase obj's underlying member method code with example usage: obj.test_stop_limit_order_prices(price, expected_limit_buy_or_stop_sell, expected_limit_sell_or_stop_buy, asset) without return types