예제 #1
0
 def test_asbool_false(self):
     for val in ('a', 'f', 'false', 'no', False, 0, None):
         self.assertFalse(asbool(val))
예제 #2
0
 def test_asbool_true(self):
     for val in ('T', 'trUe', 'y', 'yes', 'on', '1', True, 1):
         self.assertTrue(asbool(val))
예제 #3
0
 def test_asbool_true(self):
     for val in ('T', 'trUe', 'y', 'yes', 'on', '1', True, 1):
         self.assertTrue(asbool(val))
예제 #4
0
 def test_asbool_false(self):
     for val in ('a', 'f', 'false', 'no', False, 0, None):
         self.assertFalse(asbool(val))