def test_parse_hours_or_days_4_to_6_9_to_12(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4-6,9-12", None),
                      (4, 5, 6, 9, 10, 11, 12))
 def test_parse_hours_or_days_4_5_6(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4,5,6", None),
                      (4, 5, 6))
 def test_parse_hours_or_days_None(self):
     self.assertEqual(cimon.__parse_hours_or_days__("*", "0-6"),
                      (0, 1, 2, 3, 4, 5, 6))
 def test_parse_hours_or_days_None(self):
     self.assertIsNone(cimon.__parse_hours_or_days__(None, None))
 def test_parse_hours_or_days_4_to_15(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4-15", None),
                      tuple(range(4, 16)))
 def test_parse_hours_or_days_star(self):
     # * should refer to the default
     self.assertEqual(cimon.__parse_hours_or_days__("*", "42"), (42, ))
 def test_parse_hours_or_days_4_5_6(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4,5,6", None), (4,5,6))
 def test_parse_hours_or_days_nothing(self):
     # empty string should refer to the default
     self.assertEqual(cimon.__parse_hours_or_days__("", "42"), (42,))
 def test_parse_hours_or_days_1(self):
     self.assertEqual(cimon.__parse_hours_or_days__(1, None), (1, ))
     self.assertEqual(cimon.__parse_hours_or_days__("1", None), (1, ))
 def test_parse_hours_or_days_4_to_6_5(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4-6,5", None), (4,5,6))
 def test_parse_hours_or_days_star(self):
     # * should refer to the default
     self.assertEqual(cimon.__parse_hours_or_days__("*", "42"), (42,))
 def test_parse_hours_or_days_4_to_6_5_to_9(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4-6,5-9", None), (4,5,6,7,8,9))
 def test_parse_hours_or_days_4_to_6_9_to_12(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4-6,9-12", None), (4,5,6,9,10,11,12))
 def test_parse_hours_or_days_None(self):
     self.assertEqual(cimon.__parse_hours_or_days__("*", "0-6"), (0,1,2,3,4,5,6))
 def test_parse_hours_or_days_4_to_6_5_to_9(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4-6,5-9", None),
                      (4, 5, 6, 7, 8, 9))
 def test_parse_hours_or_days_None(self):
     self.assertIsNone(cimon.__parse_hours_or_days__(None, None))
 def test_parse_hours_or_days_4_to_6_5(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4-6,5", None),
                      (4, 5, 6))
 def test_parse_hours_or_days_1(self):
     self.assertEqual(cimon.__parse_hours_or_days__(1, None), (1, ))
     self.assertEqual(cimon.__parse_hours_or_days__("1", None), (1, ))
 def test_parse_hours_or_days_nothing(self):
     # empty string should refer to the default
     self.assertEqual(cimon.__parse_hours_or_days__("", "42"), (42, ))
 def test_parse_hours_or_days_4_to_15(self):
     self.assertEqual(cimon.__parse_hours_or_days__("4-15", None), tuple(range(4, 16)))