def METHOD_NAME(self, session, User):
    """
    Should be able to compare the plaintext against the
    encrypted form.
    """
    obj = User()
    obj.password = 'b'
    assert obj.password == 'b'
    assert obj.password != 'a'
    session.add(obj)
    session.commit()
    try:
        obj = session.get(User, obj.id)
    except AttributeError:
        # sqlalchemy 1.3
        obj = session.query(User).get(obj.id)
    assert obj.password == b'b'
    assert obj.password != 'a'