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