def test_mediawiki_format(self):
    'Test conversion from and to Timestamp format.'
    t1 = Timestamp.utcnow()
    if (not t1.microsecond):
        t1 = t1.replace(microsecond=1000)
    ts1 = t1.totimestampformat()
    t2 = Timestamp.fromtimestampformat(ts1)
    ts2 = t2.totimestampformat()
    self.assertNotEqual(t1, t2)
    t1 = t1.replace(microsecond=0)
    self.assertEqual(t1, t2)
    self.assertEqual(ts1, ts2)
Test conversion from and to Timestamp format.
def test_mediawiki_format(self):
    
    t1 = Timestamp.utcnow()
    if (not t1.microsecond):
        t1 = t1.replace(microsecond=1000)
    ts1 = t1.totimestampformat()
    t2 = Timestamp.fromtimestampformat(ts1)
    ts2 = t2.totimestampformat()
    self.assertNotEqual(t1, t2)
    t1 = t1.replace(microsecond=0)
    self.assertEqual(t1, t2)
    self.assertEqual(ts1, ts2)