def test_to_riak(self): t = Timestamp() dt = datetime(2100, 10, 5, 11, 10, 9) self.assertEqual(t.to_riak(dt), "2100-10-05 11:10:09.000000")