示例#1
0
 def test_bool_to_int_one(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(1), 1)
示例#2
0
 def test_bool_to_int_negative_int(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(-10), 1)
示例#3
0
 def test_bool_to_int_zero(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(0), 0)
示例#4
0
 def test_bool_to_int_false(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(False), 0)
示例#5
0
 def test_bool_to_int_positive_int(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(5), 1)
示例#6
0
 def test_bool_to_int_one(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(1), 1)
示例#7
0
 def test_bool_to_int_zero(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(0), 0)
示例#8
0
 def test_bool_to_int_negative_int(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(-10), 1)
示例#9
0
 def test_bool_to_int_positive_int(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(5), 1)
示例#10
0
 def test_bool_to_int_false(self):
     from sqlalchemy import processors
     eq_(processors.boolean_to_int(False), 0)