示例#1
0
 def testZero(self):
     self.assertFalse(wrapper_util._ParseBoolean('0'))
示例#2
0
 def testFalse(self):
     for value in itertools.product('Ff', 'Aa', 'Ll', 'Ss', 'Ee'):
         self.assertFalse(wrapper_util._ParseBoolean(''.join(value)))
示例#3
0
 def testNo(self):
     self.assertFalse(wrapper_util._ParseBoolean('NO'))
示例#4
0
 def testOne(self):
     self.assertTrue(wrapper_util._ParseBoolean('1'))
示例#5
0
 def testYes(self):
     self.assertTrue(wrapper_util._ParseBoolean('YES'))
示例#6
0
 def testTrue(self):
     for value in itertools.product('Tt', 'Rr', 'Uu', 'Ee'):
         self.assertTrue(wrapper_util._ParseBoolean(''.join(value)))
示例#7
0
 def testBooleanFalse(self):
     self.assertFalse(wrapper_util._ParseBoolean(False))
示例#8
0
 def testBooleanTrue(self):
     self.assertTrue(wrapper_util._ParseBoolean(True))