def test_isPlusValid(self):
     self.assertTrue(Verifiers.is_plus('+'))
 def test_isPlusInvalid(self):
     invalid_ranges = [range(32, 42), range(44, 126)]
     for invalid_range in invalid_ranges:
         for number in invalid_range:
             character = chr(number)
             self.assertFalse(Verifiers.is_plus(character))
 def test_isDecimalInvalid(self):
     invalid_ranges = [range(32, 45), range(47, 126)]
     for invalid_range in invalid_ranges:
         for number in invalid_range:
             character = chr(number)
             self.assertFalse(Verifiers.is_period(character))
 def test_isDecimalValid(self):
     self.assertTrue(Verifiers.is_period('.'))
 def test_isMinusValid(self):
     self.assertTrue(Verifiers.is_minus("-"))
 def test_isDigitInvalid(self):
     invalid_ranges = [range(32, 47), range(58, 126)]
     for invalid_range in invalid_ranges:
         for number in invalid_range:
             character = chr(number)
             self.assertFalse(Verifiers.is_digit(character))
 def test_isDigitValid(self):
     for number in range(48, 57):
         character = chr(number)
         self.assertTrue(Verifiers.is_digit(character))