Esempio n. 1
0
 def test(self):
     f = Future_Price.objects.all()[0]
     t = get_latest_bitcoin_time()
     self.assertTrue(t == f.time_to_match_price + (4 * ONE_US))
Esempio n. 2
0
 def test(self):
     f = Future_Price.objects.all()[0]
     t = get_latest_bitcoin_time()
     self.assertTrue(t == f.time_to_match_price + (4*ONE_US))
Esempio n. 3
0
 def test(self):
     t = get_latest_bitcoin_time()
     self.assertTrue(t < datetime.datetime(2009, 1, 1, 0, 0, 0, 0, utc))
Esempio n. 4
0
 def test(self):
     t = get_latest_bitcoin_time()
     self.assertTrue(t < datetime.datetime(2009,1,1,0,0,0,0,utc))