\i Infrastructure-TestHeader.sql

\echo '$Id: 0-integrity-MoreThanOneStraightPartyContest.sql 95 2007-03-19 13:59:35Z dflater $'
\echo
\echo 'Verify that ballot styles containing more than one straight party'
\echo 'contest are detected by the integrity check.  The "All results should'
\echo 'be empty" notice does not apply to this test case.  Refer instead to'
\echo 'the "Expected results" printed at the bottom.'

\i 0-integrity-common.sql

insert into Contest (ContestId, Description, CountingLogic, N,
                     MaxWriteIns, Rotate) values
  (5, 'Party line vote, vote for at most 1', 'Straight party selection',
   1, 0, false);
insert into BallotStyleContestAssociation (StyleId, ContestId) values
  (1, 5);

\i Infrastructure-IntegrityChecks.sql

\echo 'Expected results:'
\echo 'Ballot Styles With More Than One Straight Party Contest'
\echo ' styleid '
\echo '---------'
\echo '       1'
\echo '(1 row)'

\i Infrastructure-TestFooter.sql
