def test_timezone_constructor(self): with warnings.catch_warnings(): warnings.simplefilter('ignore', DeprecationWarning) timezone = GLib.TimeZone("+05:21") self.assertEqual(timezone.get_offset(0), ((5 * 60) + 21) * 60)
def test_timezone_constructor(self): timezone = GLib.TimeZone("+05:21") self.assertEqual(timezone.get_offset(0), ((5 * 60) + 21) * 60)