title: SQLAlchemy boolean value is None
body: <p>I have this table in my Pyramid app</p>
  
  <pre><code>class User(Base):
      __tablename__ = 'users'
      id = Column(Integer, primary_key=True)
      .....
      is_active = Column(Boolean, unique=False)
      def __init__(self, name, raw_password):
          is_active = True
  </code></pre>
  
  <p>When I did my test, it said <code>is_active</code> is None.</p>
  
  <pre><code>def test_register_user(self):
      user = User('user1', '1234')
      self.sess.add(user)
      self.sess.flush()
  
      #print user
      #self.assertTrue(user.is_active, True)
      user_db_record = self.sess.query(User).filter_by(name=user.name).first()
      self.assertEqual(user_db_record.is_active, True)
  </code></pre>
  
  <p>From my integration log I see when we are creating the row, <code>is_active</code> is set to None. Why?</p>