<commit_before>from adhocracy.tests import *
from adhocracy.tests.testtools import *
from nose.tools import *

import adhocracy.model.meta as meta
import adhocracy.model as model

class TestUserController(TestController):
    
    def test_can_delegate_via_forward_on_user(self):
        proposal = tt_make_proposal(voting=True)
        me = tt_make_user()
        delegate = tt_make_user()
        
        me.delegate_to_user_in_scope(delegate, proposal)
        assert_equals(delegate.number_of_votes_in_context(proposal), 2)<commit_msg>[svn r560] fixed api change - was still using the old name<commit_after>from adhocracy.tests import *
from adhocracy.tests.testtools import *
from nose.tools import *

import adhocracy.model.meta as meta
import adhocracy.model as model

class TestUserController(TestController):
    
    def test_can_delegate_via_forward_on_user(self):
        proposal = tt_make_proposal(voting=True)
        me = tt_make_user()
        delegate = tt_make_user()
        
        me.delegate_to_user_in_scope(delegate, proposal)
        assert_equals(delegate.number_of_votes_in_scope(proposal), 2)
{'fraction_non_alphanumeric': 0.07212822796081923, 'fraction_numerical': 0.004452359750667854, 'mean_word_length': 4.040358744394619, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6940053', 'n_tokens_mistral': 362, 'n_tokens_neox': 349, 'n_words': 71}