Example #1
0
 def test__get_nano_timestamp_except(self, mock_time):
     results = {}
     influxdb = InfluxdbDispatcher(None, self.yardstick_conf)
     mock_time.time.return_value = 1451461248.925574
     self.assertEqual(influxdb._get_nano_timestamp(results),
                      '1451461248925574144')
Example #2
0
 def test__get_nano_timestamp_except(self, mock_time):
     results = {}
     influxdb = InfluxdbDispatcher(None)
     mock_time.time.return_value = 1451461248.925574
     self.assertEqual(influxdb._get_nano_timestamp(results), '1451461248925574144')
Example #3
0
 def test__get_nano_timestamp(self):
     influxdb = InfluxdbDispatcher(None, self.yardstick_conf)
     results = {'benchmark': {'timestamp': '1451461248.925574'}}
     self.assertEqual(influxdb._get_nano_timestamp(results),
                      '1451461248925574144')
Example #4
0
 def test__get_nano_timestamp(self):
     influxdb = InfluxdbDispatcher(None)
     results = {'benchmark': {'timestamp': '1451461248.925574'}}
     self.assertEqual(influxdb._get_nano_timestamp(results), '1451461248925574144')