Exemplo n.º 1
0
    def setUp(self):
        TestLR.setUp(self)
        self.currency_pair = root[("GBP", "USD")]
        self.article_start_time = dt.datetime(2011, 9, 9, 11)
        self.article_epsilon = dt.timedelta(hours=5)
        self.named_entities = anal.named_entities_in_time_range(self.currency_pair, self.article_start_time, self.article_epsilon)

        self.currency_price_at_time = self.article_start_time + self.article_epsilon + dt.timedelta(minutes=5)
        self.currency_price = anal.currency_price_at_time(self.currency_pair, self.currency_price_at_time)

        self.data_point = anal.data_point(self.currency_pair, self.article_start_time + self.article_epsilon, self.article_epsilon, dt.timedelta(minutes=5))
Exemplo n.º 2
0
    def setUp(self):
        TestLR.setUp(self)
        self.currency_pair = root[("GBP", "USD")]
        self.article_start_time = dt.datetime(2011, 9, 9, 11)
        self.article_epsilon = dt.timedelta(hours=5)
        self.named_entities = anal.named_entities_in_time_range(
            self.currency_pair, self.article_start_time, self.article_epsilon)

        self.currency_price_at_time = self.article_start_time + self.article_epsilon + dt.timedelta(
            minutes=5)
        self.currency_price = anal.currency_price_at_time(
            self.currency_pair, self.currency_price_at_time)

        self.data_point = anal.data_point(
            self.currency_pair, self.article_start_time + self.article_epsilon,
            self.article_epsilon, dt.timedelta(minutes=5))
Exemplo n.º 3
0
 def setUp(self):
     TestLR.setUp(self)
     self.currency_pair = root[self.currency_pair_args]
     self.tradeprice = currency.PriceFromYahooPage(self.currency_pair, page_body)
Exemplo n.º 4
0
 def setUp(self):
     TestLR.setUp(self)
     self.currency_pair = root[self.currency_pair_args]
     self.article = Article(self.currency_pair, "/".join((__name__, "sample_artcile.html")), dt.now(), page_body)
     tagged_words.tag_article(self.article)
Exemplo n.º 5
0
 def setUp(self):
     TestLR.setUp(self)
     self.currency_pair = root[self.currency_pair_args]
     self.tradeprice = currency.PriceFromYahooPage(self.currency_pair,
                                                   page_body)
 def setUp(self):
     TestLR.setUp(self)
     self.currency_pair = root[self.currency_pair_args]
     self.article = Article(self.currency_pair, "/".join(
         (__name__, "sample_artcile.html")), dt.now(), page_body)
     tagged_words.tag_article(self.article)