+ def test_cast_nil_quickvote
+ assert_cast_quickvote_fails nil, nil, nil
+ assert_cast_quickvote_fails "foo", nil, nil
+ assert_cast_quickvote_fails "foo",33, []
+ test_create_quickvote
+ assert_cast_quickvote_fails "TestVote",42,nil
+ assert_cast_quickvote_fails "TestVote",nil,[]
+ end
+ def test_cast_malformed_votelist
+ test_create_quickvote
+ election = invoke_delegated :vote, :get_quickvote, "TestVote"
+ assert_cast_quickvote_fails "TestVote", 11, [election.candidate_ids[0]]
+ assert_cast_quickvote_fails "TestVote", 11, [1,2]
+ assert_cast_quickvote_fails "TestVote", 11, [election.candidate_ids[0],election.candidate_ids[0], election.candidate_ids[1], election.candidate_ids[1], election.candidate_ids[2]]
+ end