code: def testNoTrades(self):
      barFeed = yahoofeed.Feed()
      barFeed.addBarsFromCSV(
          "ige", common.get_data_file_path("sharpe-ratio-test-ige.csv")
      )
      barFeed.addBarsFromCSV(
          "spy", common.get_data_file_path("sharpe-ratio-test-spy.csv")
      )
      strat = strategy_test.TestStrategy(barFeed, 1000)
      strat.setBrokerOrdersGTC(True)
      strat.setUseAdjustedValues(True)
      stratAnalyzer = drawdown.DrawDown()
      strat.attachAnalyzer(stratAnalyzer)
  
      strat.run()
      self.assertTrue(strat.getBroker().getCash() == 1000)
      self.assertEqual(strat.orderUpdatedCalls, 0)
      self.assertTrue(stratAnalyzer.getMaxDrawDown() == 0)
      self.assertTrue(
          stratAnalyzer.getLongestDrawDownDuration()
          == datetime.timedelta()
      )
  
imports: import datetime
  from .None import common
  from .None import strategy_test
  from pyalgotrade.barfeed import yahoofeed
  from pyalgotrade.barfeed import membf
  from pyalgotrade.stratanalyzer import drawdown
  from pyalgotrade import broker
  from pyalgotrade import bar
label_desc: Use image node_id 1 for calling the AnalyzerTestCase obj's underlying member method code with example usage: obj.testNoTrades() without return types