def METHOD_NAME(self):
    applied = upgrade_db(conn, pkg, skip_versions='0002 0003'.split())
    self.assertEqual(applied, '0001 0005'.split())
    self.assertEqual(count(conn, 'test_hazard_calculation'), 2)
    self.assertEqual(count(conn, 'test_lt_source_model'), 6)
    # a script 0004 can enter when the database is already at version 0005
    # (this is a convenient feature during development) but officially
    # this is not supported and what_if_I_upgrade must raise an exception
    with temp_script('0004-do-nothing.sql', 'SELECT 1'):
        applied = upgrade_db(conn, pkg, skip_versions='0002 0003'.split())
        self.assertEqual(applied, ['0004'])
    # check that the script 0004 is rejected by what_if_I_upgrade
    with temp_script('0004-do-nothing.sql', 'SELECT 1'):
        with self.assertRaises(VersionTooSmall):
            what_if_I_upgrade(conn, pkg, 'read_scripts')