def test_main_1(self): # {{{ parser = OptionParser() (options, args) = model.parse_options(parser) options.stocks_path = local_path + "/" + "testdata/stock_data" options.output = local_path + "/" + "testdata/data/" options.window = 2 options.limit = 2 model.main(options, args)
def test_parse_options_1(self): #{{{ """ check the default options """ parser = OptionParser() (options, args) = model.parse_options(parser) self.assertEqual(60, options.window) self.assertEqual(local_path + '/data/prices_series/', options.output) self.assertEqual('Extractor4', options.extractor)