'Ensure early exit is working in realm deactivation'

def test_do_deactivate_realm_on_deactived_realm(self):

    realm = get_realm('zulip')
    self.assertFalse(realm.deactivated)
    do_deactivate_realm(realm)
    self.assertTrue(realm.deactivated)
    do_deactivate_realm(realm)
    self.assertTrue(realm.deactivated)
