'Check that timestamps are reasonable.'

def testTimestamps(self):

    predicate = 'metadata:predicate'
    subject = 'aff4:test_timestamps'
    start = (long((time.time() - 60)) * 1000000.0)
    data_store.DB.Set(subject, predicate, '1', token=self.token)
    (stored, ts) = data_store.DB.Resolve(subject, predicate, token=self.token)
    end = (long((time.time() + 60)) * 1000000.0)
    self.assertTrue(((ts >= start) and (ts <= end)))
    self.assertEqual(stored, '1')
