Lines Matching refs:tzname
56 def tzname(self, dt): member in FixedOffset
73 self.assertRaises(NotImplementedError, useless.tzname, dt)
87 self.assertRaises(NotImplementedError, ne.tzname, dt)
96 self.assertEqual(fo.tzname(dt), "Three")
117 self.assertEqual(orig.tzname(None), 'cookie')
124 self.assertEqual(derived.tzname(None), 'cookie')
1310 def tzname(self, dt): member in TestDateTime.test_strftime_with_bad_tzname_replace.MyTzInfo
2043 def tzname(self, dt): return dt and "real" or "none" member in TZInfoBase.test_argument_passing.introspective
2051 self.assertEqual(obj.tzname(), expected)
2106 def tzname(self, dt): return None member in TZInfoBase.test_tzinfo_classes.C1
2112 self.assertIsNone(t.tzname())
2117 def tzname(self, dt): return "aname" member in TZInfoBase.test_tzinfo_classes.C3
2121 self.assertEqual(t.tzname(), "aname")
2127 def tzname(self, dt): return 0 member in TZInfoBase.test_tzinfo_classes.C4
2131 self.assertRaises(TypeError, t.tzname)
2230 self.assertEqual(t1.tzname(), "EST")
2231 self.assertEqual(t2.tzname(), "UTC")
2232 self.assertEqual(t3.tzname(), "MET")
2233 self.assertIsNone(t4.tzname())
2234 self.assertRaises(TypeError, t1.tzname, "no args")
2284 def tzname(self, dt): return 42 member in TestTimeTZ.test_zones.Badtzname
2317 self.assertEqual(derived.tzname(), 'cookie')
2369 self.assertEqual(base.tzname(), "+100")
2372 self.assertIsNone(base2.tzname())
2544 self.assertEqual(derived.tzname(), 'cookie')
2573 self.assertEqual(t1.tzname(), "EST")
2574 self.assertEqual(t2.tzname(), "UTC")
2575 self.assertEqual(t3.tzname(), "MET")
2872 ofsstr = ofs is not None and d.tzname() or ''
2905 self.assertEqual(base.tzname(), "+100")
2908 self.assertIsNone(base2.tzname())
3080 def tzname(self, dt): member in USTimeZone