Example #1
0
 def test_boolean_false(self):
     for text in ['0', '0000', 'f', 'F', 'FaLsE', 'oFf', 'No']:
         self.assertEqual(handlers.boolean(text), False)
Example #2
0
 def test_boolean_true(self):
     for text in ['1', '1000', 't', 'T', 'TrUe', 'oN', 'yEs']:
         self.assertEqual(handlers.boolean(text), True)