def check_load_vote_data(self, testfile, item): vote = load_json(testfile) loader = VoteLoader(vote) result = dict(loader.load_vote_data(56149)) check_arguments(item, result)
def send_vote(session, vote_file, id): vote_json = load_json(vote_file) vote_item = VoteLoader(vote_json).load_vote_data(id) vote_item.send(session) return vote_item