示例#1
0
 def test_boolean(self):
     self.assertEquals(types.boolean("FaLSE"), False)
示例#2
0
 def test_boolean_false(self):
     self.assertEquals(types.boolean("False"), False)
示例#3
0
 def test_boolean_true(self):
     self.assertEquals(types.boolean("true"), True)
示例#4
0
 def test_boolean(self):
     assert_equal(types.boolean("FaLSE"), False)
示例#5
0
 def test_bad_boolean(self):
     assert_raises(ValueError, lambda: types.boolean("blah"))
示例#6
0
 def test_boolean_true(self):
     assert_equal(types.boolean("true"), True)
示例#7
0
 def test_boolean_upper_case(self):
     assert_equal(types.boolean("FaLSE"), False)
示例#8
0
 def test_boolean(self):
     self.assertEquals(types.boolean("FaLSE"), False)
示例#9
0
 def test_boolean_false(self):
     assert_equal(types.boolean("False"), False)
示例#10
0
 def test_boolean_false(self):
     self.assertEquals(types.boolean("False"), False)
示例#11
0
 def test_boolean_true(self):
     self.assertEquals(types.boolean("true"), True)
示例#12
0
 def test_bad_boolean(self):
     assert_raises(ValueError, lambda: types.boolean("blah"))
示例#13
0
 def test_boolean(self):
     assert_equal(types.boolean("FaLSE"), False)
示例#14
0
 def test_boolean_upper_case(self):
     assert_equal(types.boolean("FaLSE"), False)
示例#15
0
 def test_boolean_true(self):
     assert_equal(types.boolean("true"), True)
示例#16
0
 def test_boolean_false(self):
     assert_equal(types.boolean("False"), False)