def test_military_to_standard_time(self):
     self.assertEqual(
         wmcourses.format_time(u'0000-0030'), u'12:00AM-12:30AM')
     self.assertEqual(
         wmcourses.format_time(u'2300-0030'), u'11:00PM-12:30AM')
     self.assertEqual(
         wmcourses.format_time(u'1159-1200'), u'11:59AM-12:00PM')
     self.assertEqual(
         wmcourses.format_time(u'0100-0130'), u'01:00AM-01:30AM')
 def test_military_to_standard_bad_times(self):
     self.assertEqual(wmcourses.format_time(u'2400-2430'), u'2400-2430')
     self.assertEqual(wmcourses.format_time(u'240-243'), u'240-243')
     self.assertEqual(wmcourses.format_time(u'1000-1060'), u'1000-1060')
     self.assertEqual(wmcourses.format_time(u'1000-'), u'1000-')
     self.assertEqual(wmcourses.format_time(u'-1000'), u'-1000')
     self.assertEqual(wmcourses.format_time(u'-1000'), u'-1000')