'logging in fails in a deactivated realm'

def test_login_deactivated_realm(self):

    do_deactivate_realm(get_realm('zulip'))
    result = self.login_with_return(self.example_email('hamlet'))
    self.assert_in_response('has    been    deactivated', result)
