def timestr_tests(self): t = WbTime(year=2010, hour=12, minute=43, precision=14) self.assertEqual(t.toTimestr(), '+2010-01-01T12:43:00Z') # Consistency self.assertEqual(WbTime.fromTimestr(t.toTimestr()), t)