def test_short_mediawiki_format(self):
    'Test short mw timestamp conversion from and to Timestamp format.'
    t1 = Timestamp(2018, 12, 17)
    t2 = Timestamp.fromtimestampformat('20181217')
    ts1 = t1.totimestampformat()
    ts2 = t2.totimestampformat()
    self.assertEqual(t1, t2)
    self.assertEqual(ts1, ts2)
Test short mw timestamp conversion from and to Timestamp format.
def test_short_mediawiki_format(self):
    
    t1 = Timestamp(2018, 12, 17)
    t2 = Timestamp.fromtimestampformat('20181217')
    ts1 = t1.totimestampformat()
    ts2 = t2.totimestampformat()
    self.assertEqual(t1, t2)
    self.assertEqual(ts1, ts2)