'If you try to log in to a deactivated realm, you get a clear error page.'

def test_login_deactivated(self):

    realm = get_realm('zulip')
    realm.deactivated = True
    realm.save(update_fields=['deactivated'])
    result = self.login_with_return(self.example_email('hamlet'))
    self.assert_in_response('has    been    deactivated', result)
