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