

def testInvalidInstrument(self):
    instrument = 'inexistent'
    with self.assertRaisesRegexp(Exception, '404 Client Error: Not Found'):
        with common.TmpDir() as tmpPath:
            quandl.build_feed(instrument, [instrument], 2010, 2010, tmpPath, bar.Frequency.WEEK, authToken=auth_token)
    with common.TmpDir() as tmpPath:
        bf = quandl.build_feed(instrument, [instrument], 2010, 2010, tmpPath, bar.Frequency.WEEK, authToken=auth_token, skipErrors=True)
        instrument.loadAll()
        self.assertNotIn(instrument, bf)

dataset/ETHPy150Open gbeced/pyalgotrade/testcases/quandl_test.py ToolsTestCase.testInvalidInstrument/VarMisuse@110/155 `bf`->`instrument`