'logging in fails with an inactive user'

def test_login_deactivated_user(self):

    user_profile = self.example_user('hamlet')
    do_deactivate_user(user_profile)
    result = self.login_with_return(self.example_email('hamlet'))
    self.assert_in_response('Sorry    for    the    trouble,    but    your    account    has    been    deactivated', result)
