\i Infrastructure-TestHeader.sql

\echo '$Id: 0-integrity-NonExistentParties.sql 95 2007-03-19 13:59:35Z dflater $'
\echo
\echo 'Verify that non-existent parties listed in a straight party contest'
\echo 'are detected by the integrity check.  The "All results should be'
\echo 'empty" notice does not apply to this test case.  Refer instead to the'
\echo '"Expected results" printed at the bottom.'

\i 0-integrity-common.sql

update Choice
  set Name = 'Radical Party'
  where ChoiceId = 9;

\i Infrastructure-IntegrityChecks.sql

\echo 'Expected results:'
\echo 'Non-Existent Parties In Straight Party Contest'
\echo ' contestid |     name'
\echo '-----------+---------------'
\echo '         4 | Radical Party'
\echo '(1 row)'

\i Infrastructure-TestFooter.sql
