[ckan-changes] commit/ckanext-harvest: amercader: Remove old tests

Bitbucket commits-noreply at bitbucket.org
Tue Jul 19 13:19:07 UTC 2011


1 new changeset in ckanext-harvest:

http://bitbucket.org/okfn/ckanext-harvest/changeset/9bc6d9d11f17/
changeset:   9bc6d9d11f17
user:        amercader
date:        2011-07-19 15:18:25
summary:     Remove old tests
affected #:  14 files (223 bytes)

--- a/README.rst	Mon Jul 18 17:35:32 2011 +0100
+++ b/README.rst	Tue Jul 19 14:18:25 2011 +0100
@@ -52,19 +52,6 @@
 
 	http://localhost:5000/harvest
 
-Tests
-=====
-
-To run the tests, this is the basic command::
-
-    $ nosetests --ckan tests/
-
-Or with postgres::
-
-    $ nosetests --ckan --with-pylons=../ckan/test-core.ini tests/
-
-(See the Ckan README for more information.)
-
 
 Command line interface
 ======================


--- a/test-core.ini	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-#
-# ckan - Pylons testing environment configuration
-#
-# The %(here)s variable will be replaced with the parent directory of this file
-#
-[DEFAULT]
-debug = true
-# Uncomment and replace with the address which should receive any error reports
-#email_to = you at yourdomain.com
-smtp_server = localhost
-error_email_from = paste at localhost
-
-[server:main]
-use = egg:Paste#http
-host = 0.0.0.0
-port = 5000
-
-
-[app:main]
-use = config:../ckan/test-core.ini
-
-ckan.plugins = harvest
-ckan.harvesting.api_key = testkey
-
-# Logging configuration
-[loggers]
-keys = root, ckan, sqlalchemy
-
-[handlers]
-keys = console
-
-[formatters]
-keys = generic
-
-[logger_root]
-level = WARN
-handlers = console
-
-[logger_ckan]
-qualname = ckan
-handlers = 
-level = INFO
-
-[logger_sqlalchemy]
-handlers =
-qualname = sqlalchemy.engine
-level = WARN  
-
-[handler_console]
-class = StreamHandler
-args = (sys.stdout,)
-level = NOTSET
-formatter = generic
-
-[formatter_generic]
-format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s


--- a/test.ini	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
-#
-# ckan - Pylons testing environment configuration
-#
-# The %(here)s variable will be replaced with the parent directory of this file
-#
-[DEFAULT]
-debug = true
-# Uncomment and replace with the address which should receive any error reports
-#email_to = you at yourdomain.com
-smtp_server = localhost
-error_email_from = paste at localhost
-
-[server:main]
-use = egg:Paste#http
-host = 0.0.0.0
-port = 5000
-
-
-[app:main]
-use = config:test-core.ini
-# Here we hard-code the database and a flag to make default tests
-# run fast.
-faster_db_test_hacks = True
-sqlalchemy.url = sqlite:///
-# NB: other test configuration should go in test-core.ini, which is
-#     what the postgres tests use.
-
-
-# Logging configuration
-[loggers]
-keys = root, ckan, sqlalchemy
-
-[handlers]
-keys = console
-
-[formatters]
-keys = generic
-
-[logger_root]
-level = WARN
-handlers = console
-
-[logger_ckan]
-qualname = ckan
-handlers = 
-level = INFO
-
-[logger_sqlalchemy]
-handlers =
-qualname = sqlalchemy.engine
-level = WARN  
-
-[handler_console]
-class = StreamHandler
-args = (sys.stdout,)
-level = NOTSET
-formatter = generic
-
-[formatter_generic]
-format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s


--- a/tests/gemini2_examples/00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.update.xml	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,252 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <gmd:fileIdentifier>
-    <gco:CharacterString>00a743bf-cca4-4c19-a8e5-e64f7edbcadd</gco:CharacterString>
-  </gmd:fileIdentifier>
-  <gmd:language>
-    <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/php/code_list.php" codeListValue="eng">eng</gmd:LanguageCode>
-  </gmd:language>
-  <gmd:hierarchyLevel>
-    <gmd:MD_ScopeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_ScopeCode" codeListValue="dataset">dataset</gmd:MD_ScopeCode>
-  </gmd:hierarchyLevel>
-  <gmd:contact>
-    <gmd:CI_ResponsibleParty>
-      <gmd:organisationName>
-        <gco:CharacterString>Barrow Borough Council</gco:CharacterString>
-      </gmd:organisationName>
-      <gmd:contactInfo>
-        <gmd:CI_Contact>
-          <gmd:address>
-            <gmd:CI_Address>
-              <gmd:electronicMailAddress>
-                <gco:CharacterString>gis at barrowbc.gov.uk</gco:CharacterString>
-              </gmd:electronicMailAddress>
-            </gmd:CI_Address>
-          </gmd:address>
-        </gmd:CI_Contact>
-      </gmd:contactInfo>
-      <gmd:role>
-        <gmd:CI_RoleCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeListValue="pointOfContact">pointOfContact</gmd:CI_RoleCode>
-      </gmd:role>
-    </gmd:CI_ResponsibleParty>
-  </gmd:contact>
-  <gmd:dateStamp>
-    <gco:Date>2009-10-16</gco:Date>
-  </gmd:dateStamp>
-  <gmd:metadataStandardName>
-    <gco:CharacterString>ISO19115</gco:CharacterString>
-  </gmd:metadataStandardName>
-  <gmd:metadataStandardVersion>
-    <gco:CharacterString>2003/Cor.1:2006</gco:CharacterString>
-  </gmd:metadataStandardVersion>
-  <gmd:referenceSystemInfo>
-    <gmd:MD_ReferenceSystem>
-      <gmd:referenceSystemIdentifier>
-        <gmd:RS_Identifier>
-          <gmd:code>
-            <gco:CharacterString>urn:ogc:def:crs:EPSG::27700</gco:CharacterString>
-          </gmd:code>
-        </gmd:RS_Identifier>
-      </gmd:referenceSystemIdentifier>
-    </gmd:MD_ReferenceSystem>
-  </gmd:referenceSystemInfo>
-  <gmd:identificationInfo>
-    <gmd:MD_DataIdentification>
-      <gmd:citation>
-        <gmd:CI_Citation>
-          <gmd:title>
-            <gco:CharacterString>Council Owned Litter Bins</gco:CharacterString>
-          </gmd:title>
-          <gmd:date>
-            <gmd:CI_Date>
-              <gmd:date>
-                <gco:Date>2008-10-10</gco:Date>
-              </gmd:date>
-              <gmd:dateType>
-                <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue="creation">creation</gmd:CI_DateTypeCode>
-              </gmd:dateType>
-            </gmd:CI_Date>
-          </gmd:date>
-          <gmd:date>
-            <gmd:CI_Date>
-              <gmd:date>
-                <gco:Date>2009-10-08</gco:Date>
-              </gmd:date>
-              <gmd:dateType>
-                <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue="revision">revision</gmd:CI_DateTypeCode>
-              </gmd:dateType>
-            </gmd:CI_Date>
-          </gmd:date>
-          <gmd:identifier>
-            <gmd:RS_Identifier>
-              <gmd:code>
-                <gco:CharacterString>BBC:000006</gco:CharacterString>
-              </gmd:code>
-              <gmd:codeSpace>
-                <gco:CharacterString>Barrow Borough Council</gco:CharacterString>
-              </gmd:codeSpace>
-            </gmd:RS_Identifier>
-          </gmd:identifier>
-        </gmd:CI_Citation>
-      </gmd:citation>
-      <gmd:abstract>
-        <gco:CharacterString>The Location of Council owned litter bins within Borough.</gco:CharacterString>
-      </gmd:abstract>
-      <gmd:pointOfContact>
-        <gmd:CI_ResponsibleParty>
-          <gmd:organisationName>
-            <gco:CharacterString>Barrow Borough Council</gco:CharacterString>
-          </gmd:organisationName>
-          <gmd:contactInfo>
-            <gmd:CI_Contact>
-              <gmd:address>
-                <gmd:CI_Address>
-                  <gmd:electronicMailAddress>
-                    <gco:CharacterString>gis at barrowbc.gov.uk</gco:CharacterString>
-                  </gmd:electronicMailAddress>
-                </gmd:CI_Address>
-              </gmd:address>
-            </gmd:CI_Contact>
-          </gmd:contactInfo>
-          <gmd:role>
-            <gmd:CI_RoleCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeListValue="pointOfContact">pointOfContact</gmd:CI_RoleCode>
-          </gmd:role>
-        </gmd:CI_ResponsibleParty>
-      </gmd:pointOfContact>
-      <gmd:resourceMaintenance>
-        <gmd:MD_MaintenanceInformation>
-          <gmd:maintenanceAndUpdateFrequency>
-            <gmd:MD_MaintenanceFrequencyCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_MaintenanceFrequencyCode" codeListValue="unknown">unknown</gmd:MD_MaintenanceFrequencyCode>
-          </gmd:maintenanceAndUpdateFrequency>
-        </gmd:MD_MaintenanceInformation>
-      </gmd:resourceMaintenance>
-      <gmd:descriptiveKeywords>
-        <gmd:MD_Keywords>
-          <gmd:keyword>
-            <gco:CharacterString>Utility and governmental services</gco:CharacterString>
-          </gmd:keyword>
-          <gmd:thesaurusName>
-            <gmd:CI_Citation>
-              <gmd:title>
-                <gco:CharacterString>GEMET - INSPIRE themes, version 1.0</gco:CharacterString>
-              </gmd:title>
-              <gmd:date>
-                <gmd:CI_Date>
-                  <gmd:date>
-                    <gco:Date>2008-06-01</gco:Date>
-                  </gmd:date>
-                  <gmd:dateType>
-                    <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue="publication">publication</gmd:CI_DateTypeCode>
-                  </gmd:dateType>
-                </gmd:CI_Date>
-              </gmd:date>
-            </gmd:CI_Citation>
-          </gmd:thesaurusName>
-        </gmd:MD_Keywords>
-      </gmd:descriptiveKeywords>
-      <gmd:resourceConstraints>
-        <gmd:MD_Constraints>
-          <gmd:useLimitation>
-            <gco:CharacterString>conditions unknown</gco:CharacterString>
-          </gmd:useLimitation>
-        </gmd:MD_Constraints>
-      </gmd:resourceConstraints>
-      <gmd:resourceConstraints>
-        <gmd:MD_LegalConstraints>
-          <gmd:accessConstraints>
-            <gmd:MD_RestrictionCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_RestrictionCode" codeListValue="otherRestrictions">otherRestrictions</gmd:MD_RestrictionCode>
-          </gmd:accessConstraints>
-          <gmd:otherConstraints>
-            <gco:CharacterString>(e) intellectual property rights;</gco:CharacterString>
-          </gmd:otherConstraints>
-        </gmd:MD_LegalConstraints>
-      </gmd:resourceConstraints>
-      <gmd:spatialResolution>
-        <gmd:MD_Resolution>
-          <gmd:equivalentScale>
-            <gmd:MD_RepresentativeFraction>
-              <gmd:denominator>
-                <gco:Integer>1250</gco:Integer>
-              </gmd:denominator>
-            </gmd:MD_RepresentativeFraction>
-          </gmd:equivalentScale>
-        </gmd:MD_Resolution>
-      </gmd:spatialResolution>
-      <gmd:language>
-        <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/php/code_list.php" codeListValue="eng">eng</gmd:LanguageCode>
-      </gmd:language>
-      <gmd:topicCategory>
-        <gmd:MD_TopicCategoryCode>environment</gmd:MD_TopicCategoryCode>
-      </gmd:topicCategory>
-      <gmd:extent>
-        <gmd:EX_Extent>
-          <gmd:geographicElement>
-            <gmd:EX_GeographicBoundingBox>
-              <gmd:westBoundLongitude>
-                <gco:Decimal>-3.32486</gco:Decimal>
-              </gmd:westBoundLongitude>
-              <gmd:eastBoundLongitude>
-                <gco:Decimal>-3.12443</gco:Decimal>
-              </gmd:eastBoundLongitude>
-              <gmd:southBoundLatitude>
-                <gco:Decimal>54.039635</gco:Decimal>
-              </gmd:southBoundLatitude>
-              <gmd:northBoundLatitude>
-                <gco:Decimal>54.218408</gco:Decimal>
-              </gmd:northBoundLatitude>
-            </gmd:EX_GeographicBoundingBox>
-          </gmd:geographicElement>
-          <gmd:temporalElement>
-            <gmd:EX_TemporalExtent>
-              <gmd:extent>
-                <gml:TimePeriod gml:id="_f329b5fa-4ca4-4c8e-ad0f-27e399386ab2">
-                  <gml:beginPosition>1977-03-10T11:45:30</gml:beginPosition>
-                  <gml:endPosition>2005-01-15T09:10:00</gml:endPosition>
-                </gml:TimePeriod>
-              </gmd:extent>
-            </gmd:EX_TemporalExtent>
-          </gmd:temporalElement>
-        </gmd:EX_Extent>
-      </gmd:extent>
-    </gmd:MD_DataIdentification>
-  </gmd:identificationInfo>
-  <gmd:distributionInfo>
-    <gmd:MD_Distribution>
-      <gmd:distributionFormat>
-        <gmd:MD_Format>
-          <gmd:name gco:nilReason="inapplicable" />
-          <gmd:version gco:nilReason="inapplicable" />
-        </gmd:MD_Format>
-      </gmd:distributionFormat>
-      <gmd:transferOptions>
-        <gmd:MD_DigitalTransferOptions>
-          <gmd:onLine>
-            <gmd:CI_OnlineResource>
-              <gmd:linkage>
-                <gmd:URL>http://www.barrowbc.gov.uk</gmd:URL>
-              </gmd:linkage>
-            </gmd:CI_OnlineResource>
-          </gmd:onLine>
-        </gmd:MD_DigitalTransferOptions>
-      </gmd:transferOptions>
-    </gmd:MD_Distribution>
-  </gmd:distributionInfo>
-  <gmd:dataQualityInfo>
-    <gmd:DQ_DataQuality>
-      <gmd:scope>
-        <gmd:DQ_Scope>
-          <gmd:level>
-            <gmd:MD_ScopeCode codeListValue="dataset" codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_ScopeCode">dataset</gmd:MD_ScopeCode>
-          </gmd:level>
-        </gmd:DQ_Scope>
-      </gmd:scope>
-      <gmd:lineage>
-        <gmd:LI_Lineage>
-          <gmd:statement>
-            <gco:CharacterString>Dataset created from ground surveys using Ordnance Survey Mastemap as base.</gco:CharacterString>
-          </gmd:statement>
-        </gmd:LI_Lineage>
-      </gmd:lineage>
-    </gmd:DQ_DataQuality>
-  </gmd:dataQualityInfo>
-</gmd:MD_Metadata>


--- a/tests/gemini2_examples/00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.xml	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,252 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink">
-  <gmd:fileIdentifier>
-    <gco:CharacterString>00a743bf-cca4-4c19-a8e5-e64f7edbcadd</gco:CharacterString>
-  </gmd:fileIdentifier>
-  <gmd:language>
-    <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/php/code_list.php" codeListValue="eng">eng</gmd:LanguageCode>
-  </gmd:language>
-  <gmd:hierarchyLevel>
-    <gmd:MD_ScopeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_ScopeCode" codeListValue="dataset">dataset</gmd:MD_ScopeCode>
-  </gmd:hierarchyLevel>
-  <gmd:contact>
-    <gmd:CI_ResponsibleParty>
-      <gmd:organisationName>
-        <gco:CharacterString>Barrow Borough Council</gco:CharacterString>
-      </gmd:organisationName>
-      <gmd:contactInfo>
-        <gmd:CI_Contact>
-          <gmd:address>
-            <gmd:CI_Address>
-              <gmd:electronicMailAddress>
-                <gco:CharacterString>gis at barrowbc.gov.uk</gco:CharacterString>
-              </gmd:electronicMailAddress>
-            </gmd:CI_Address>
-          </gmd:address>
-        </gmd:CI_Contact>
-      </gmd:contactInfo>
-      <gmd:role>
-        <gmd:CI_RoleCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeListValue="pointOfContact">pointOfContact</gmd:CI_RoleCode>
-      </gmd:role>
-    </gmd:CI_ResponsibleParty>
-  </gmd:contact>
-  <gmd:dateStamp>
-    <gco:Date>2009-10-16</gco:Date>
-  </gmd:dateStamp>
-  <gmd:metadataStandardName>
-    <gco:CharacterString>ISO19115</gco:CharacterString>
-  </gmd:metadataStandardName>
-  <gmd:metadataStandardVersion>
-    <gco:CharacterString>2003/Cor.1:2006</gco:CharacterString>
-  </gmd:metadataStandardVersion>
-  <gmd:referenceSystemInfo>
-    <gmd:MD_ReferenceSystem>
-      <gmd:referenceSystemIdentifier>
-        <gmd:RS_Identifier>
-          <gmd:code>
-            <gco:CharacterString>urn:ogc:def:crs:EPSG::27700</gco:CharacterString>
-          </gmd:code>
-        </gmd:RS_Identifier>
-      </gmd:referenceSystemIdentifier>
-    </gmd:MD_ReferenceSystem>
-  </gmd:referenceSystemInfo>
-  <gmd:identificationInfo>
-    <gmd:MD_DataIdentification>
-      <gmd:citation>
-        <gmd:CI_Citation>
-          <gmd:title>
-            <gco:CharacterString>Council Owned Litter Bins</gco:CharacterString>
-          </gmd:title>
-          <gmd:date>
-            <gmd:CI_Date>
-              <gmd:date>
-                <gco:Date>2008-10-10</gco:Date>
-              </gmd:date>
-              <gmd:dateType>
-                <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue="creation">creation</gmd:CI_DateTypeCode>
-              </gmd:dateType>
-            </gmd:CI_Date>
-          </gmd:date>
-          <gmd:date>
-            <gmd:CI_Date>
-              <gmd:date>
-                <gco:Date>2009-10-08</gco:Date>
-              </gmd:date>
-              <gmd:dateType>
-                <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue="revision">revision</gmd:CI_DateTypeCode>
-              </gmd:dateType>
-            </gmd:CI_Date>
-          </gmd:date>
-          <gmd:identifier>
-            <gmd:RS_Identifier>
-              <gmd:code>
-                <gco:CharacterString>BBC:000006</gco:CharacterString>
-              </gmd:code>
-              <gmd:codeSpace>
-                <gco:CharacterString>Barrow Borough Council</gco:CharacterString>
-              </gmd:codeSpace>
-            </gmd:RS_Identifier>
-          </gmd:identifier>
-        </gmd:CI_Citation>
-      </gmd:citation>
-      <gmd:abstract>
-        <gco:CharacterString>Location of Council owned litter bins within Borough.</gco:CharacterString>
-      </gmd:abstract>
-      <gmd:pointOfContact>
-        <gmd:CI_ResponsibleParty>
-          <gmd:organisationName>
-            <gco:CharacterString>Barrow Borough Council</gco:CharacterString>
-          </gmd:organisationName>
-          <gmd:contactInfo>
-            <gmd:CI_Contact>
-              <gmd:address>
-                <gmd:CI_Address>
-                  <gmd:electronicMailAddress>
-                    <gco:CharacterString>gis at barrowbc.gov.uk</gco:CharacterString>
-                  </gmd:electronicMailAddress>
-                </gmd:CI_Address>
-              </gmd:address>
-            </gmd:CI_Contact>
-          </gmd:contactInfo>
-          <gmd:role>
-            <gmd:CI_RoleCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeListValue="pointOfContact">pointOfContact</gmd:CI_RoleCode>
-          </gmd:role>
-        </gmd:CI_ResponsibleParty>
-      </gmd:pointOfContact>
-      <gmd:resourceMaintenance>
-        <gmd:MD_MaintenanceInformation>
-          <gmd:maintenanceAndUpdateFrequency>
-            <gmd:MD_MaintenanceFrequencyCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_MaintenanceFrequencyCode" codeListValue="unknown">unknown</gmd:MD_MaintenanceFrequencyCode>
-          </gmd:maintenanceAndUpdateFrequency>
-        </gmd:MD_MaintenanceInformation>
-      </gmd:resourceMaintenance>
-      <gmd:descriptiveKeywords>
-        <gmd:MD_Keywords>
-          <gmd:keyword>
-            <gco:CharacterString>Utility and governmental services</gco:CharacterString>
-          </gmd:keyword>
-          <gmd:thesaurusName>
-            <gmd:CI_Citation>
-              <gmd:title>
-                <gco:CharacterString>GEMET - INSPIRE themes, version 1.0</gco:CharacterString>
-              </gmd:title>
-              <gmd:date>
-                <gmd:CI_Date>
-                  <gmd:date>
-                    <gco:Date>2008-06-01</gco:Date>
-                  </gmd:date>
-                  <gmd:dateType>
-                    <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue="publication">publication</gmd:CI_DateTypeCode>
-                  </gmd:dateType>
-                </gmd:CI_Date>
-              </gmd:date>
-            </gmd:CI_Citation>
-          </gmd:thesaurusName>
-        </gmd:MD_Keywords>
-      </gmd:descriptiveKeywords>
-      <gmd:resourceConstraints>
-        <gmd:MD_Constraints>
-          <gmd:useLimitation>
-            <gco:CharacterString>conditions unknown</gco:CharacterString>
-          </gmd:useLimitation>
-        </gmd:MD_Constraints>
-      </gmd:resourceConstraints>
-      <gmd:resourceConstraints>
-        <gmd:MD_LegalConstraints>
-          <gmd:accessConstraints>
-            <gmd:MD_RestrictionCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_RestrictionCode" codeListValue="otherRestrictions">otherRestrictions</gmd:MD_RestrictionCode>
-          </gmd:accessConstraints>
-          <gmd:otherConstraints>
-            <gco:CharacterString>(e) intellectual property rights;</gco:CharacterString>
-          </gmd:otherConstraints>
-        </gmd:MD_LegalConstraints>
-      </gmd:resourceConstraints>
-      <gmd:spatialResolution>
-        <gmd:MD_Resolution>
-          <gmd:equivalentScale>
-            <gmd:MD_RepresentativeFraction>
-              <gmd:denominator>
-                <gco:Integer>1250</gco:Integer>
-              </gmd:denominator>
-            </gmd:MD_RepresentativeFraction>
-          </gmd:equivalentScale>
-        </gmd:MD_Resolution>
-      </gmd:spatialResolution>
-      <gmd:language>
-        <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/php/code_list.php" codeListValue="eng">eng</gmd:LanguageCode>
-      </gmd:language>
-      <gmd:topicCategory>
-        <gmd:MD_TopicCategoryCode>environment</gmd:MD_TopicCategoryCode>
-      </gmd:topicCategory>
-      <gmd:extent>
-        <gmd:EX_Extent>
-          <gmd:geographicElement>
-            <gmd:EX_GeographicBoundingBox>
-              <gmd:westBoundLongitude>
-                <gco:Decimal>-3.32485</gco:Decimal>
-              </gmd:westBoundLongitude>
-              <gmd:eastBoundLongitude>
-                <gco:Decimal>-3.12442</gco:Decimal>
-              </gmd:eastBoundLongitude>
-              <gmd:southBoundLatitude>
-                <gco:Decimal>54.039634</gco:Decimal>
-              </gmd:southBoundLatitude>
-              <gmd:northBoundLatitude>
-                <gco:Decimal>54.218407</gco:Decimal>
-              </gmd:northBoundLatitude>
-            </gmd:EX_GeographicBoundingBox>
-          </gmd:geographicElement>
-          <gmd:temporalElement>
-            <gmd:EX_TemporalExtent>
-              <gmd:extent>
-                <gml:TimePeriod gml:id="_f329b5fa-4ca4-4c8e-ad0f-27e399386ab2">
-                  <gml:beginPosition>1977-03-10T11:45:30</gml:beginPosition>
-                  <gml:endPosition>2005-01-15T09:10:00</gml:endPosition>
-                </gml:TimePeriod>
-              </gmd:extent>
-            </gmd:EX_TemporalExtent>
-          </gmd:temporalElement>
-        </gmd:EX_Extent>
-      </gmd:extent>
-    </gmd:MD_DataIdentification>
-  </gmd:identificationInfo>
-  <gmd:distributionInfo>
-    <gmd:MD_Distribution>
-      <gmd:distributionFormat>
-        <gmd:MD_Format>
-          <gmd:name gco:nilReason="inapplicable" />
-          <gmd:version gco:nilReason="inapplicable" />
-        </gmd:MD_Format>
-      </gmd:distributionFormat>
-      <gmd:transferOptions>
-        <gmd:MD_DigitalTransferOptions>
-          <gmd:onLine>
-            <gmd:CI_OnlineResource>
-              <gmd:linkage>
-                <gmd:URL>http://www.barrowbc.gov.uk</gmd:URL>
-              </gmd:linkage>
-            </gmd:CI_OnlineResource>
-          </gmd:onLine>
-        </gmd:MD_DigitalTransferOptions>
-      </gmd:transferOptions>
-    </gmd:MD_Distribution>
-  </gmd:distributionInfo>
-  <gmd:dataQualityInfo>
-    <gmd:DQ_DataQuality>
-      <gmd:scope>
-        <gmd:DQ_Scope>
-          <gmd:level>
-            <gmd:MD_ScopeCode codeListValue="dataset" codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_ScopeCode">dataset</gmd:MD_ScopeCode>
-          </gmd:level>
-        </gmd:DQ_Scope>
-      </gmd:scope>
-      <gmd:lineage>
-        <gmd:LI_Lineage>
-          <gmd:statement>
-            <gco:CharacterString>Dataset created from ground surveys using Ordnance Survey Mastemap as base.</gco:CharacterString>
-          </gmd:statement>
-        </gmd:LI_Lineage>
-      </gmd:lineage>
-    </gmd:DQ_DataQuality>
-  </gmd:dataQualityInfo>
-</gmd:MD_Metadata>
\ No newline at end of file


--- a/tests/gemini2_examples/My series sample.xml	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,303 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<gmd:MD_Metadata xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.isotc211.org/2005/gmd C:\DOCUME~1\pparslow\MYDOCU~1\TC211&~1\EDENSC~1\gmd\gmd.xsd">
-	<gmd:fileIdentifier xmlns:gml="http://www.opengis.net/gml">
-		<gco:CharacterString>603f921c-79df-4866-ac69-f4acc37e4851</gco:CharacterString>
-	</gmd:fileIdentifier>
-	<gmd:language>
-		<gmd:LanguageCode codeListValue="eng" codeList="http://www.loc.gov/standards/iso639-2/php/code_list.php">eng</gmd:LanguageCode>
-	</gmd:language>
-	<gmd:hierarchyLevel>
-		<gmd:MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_ScopeCode" codeListValue="series"/>
-	</gmd:hierarchyLevel>
-	<gmd:hierarchyLevelName>
-		<gco:CharacterString>OS imagery</gco:CharacterString>
-	</gmd:hierarchyLevelName>
-	<gmd:contact>
-		<gmd:CI_ResponsibleParty>
-			<gmd:organisationName>
-				<gco:CharacterString>Ordnance Survey</gco:CharacterString>
-			</gmd:organisationName>
-			<gmd:positionName>
-				<gco:CharacterString>Senior Information Architect</gco:CharacterString>
-			</gmd:positionName>
-			<gmd:contactInfo>
-				<gmd:CI_Contact>
-					<gmd:phone>
-						<gmd:CI_Telephone>
-							<gmd:voice>
-								<gco:CharacterString>+44 (0) 23 8079 2313</gco:CharacterString>
-							</gmd:voice>
-						</gmd:CI_Telephone>
-					</gmd:phone>
-					<gmd:address>
-						<gmd:CI_Address>
-							<gmd:deliveryPoint>
-								<gco:CharacterString>C478</gco:CharacterString>
-							</gmd:deliveryPoint>
-							<gmd:deliveryPoint>
-								<gco:CharacterString>Romsey Road</gco:CharacterString>
-							</gmd:deliveryPoint>
-							<gmd:city>
-								<gco:CharacterString>SOUTHAMPTON</gco:CharacterString>
-							</gmd:city>
-							<gmd:postalCode>
-								<gco:CharacterString>SO16 4GU</gco:CharacterString>
-							</gmd:postalCode>
-							<gmd:country>
-								<gco:CharacterString>United Kingdom</gco:CharacterString>
-							</gmd:country>
-							<gmd:electronicMailAddress>
-								<gco:CharacterString>Peter.Parslow at ordnancesurvey.co.uk</gco:CharacterString>
-							</gmd:electronicMailAddress>
-						</gmd:CI_Address>
-					</gmd:address>
-				</gmd:CI_Contact>
-			</gmd:contactInfo>
-			<gmd:role>
-				<gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_RoleCode" codeListValue="pointOfContact"/>
-			</gmd:role>
-		</gmd:CI_ResponsibleParty>
-	</gmd:contact>
-	<gmd:dateStamp>
-		<gco:DateTime xmlns:gml="http://www.opengis.net/gml">2010-08-19T17:05:15</gco:DateTime>
-	</gmd:dateStamp>
-	<gmd:referenceSystemInfo>
-		<gmd:MD_ReferenceSystem>
-			<gmd:referenceSystemIdentifier>
-				<gmd:RS_Identifier>
-					<gmd:code>
-						<gco:CharacterString>urn:ogc:def:crs:EPSG::4258</gco:CharacterString>
-					</gmd:code>
-				</gmd:RS_Identifier>
-			</gmd:referenceSystemIdentifier>
-		</gmd:MD_ReferenceSystem>
-	</gmd:referenceSystemInfo>
-	<gmd:identificationInfo>
-		<gmd:MD_DataIdentification>
-			<gmd:citation>
-				<gmd:CI_Citation>
-					<gmd:title>
-						<gco:CharacterString>OS MasterMap® Imagery Layer</gco:CharacterString>
-					</gmd:title>
-					<gmd:date>
-						<gmd:CI_Date>
-							<gmd:date>
-								<gco:DateTime>2004-09-15T16:13:00</gco:DateTime>
-							</gmd:date>
-							<gmd:dateType>
-								<gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_DateTypeCode" codeListValue="creation"/>
-							</gmd:dateType>
-						</gmd:CI_Date>
-					</gmd:date><gmd:identifier>
-            <gmd:RS_Identifier>
-              <gmd:code>
-                <gco:CharacterString>OSMM Imagery</gco:CharacterString>
-              </gmd:code>
-              <gmd:codeSpace>
-            <gco:CharacterString>http://www.ordnancesurvey.co.uk</gco:CharacterString>
-              </gmd:codeSpace>
-            </gmd:RS_Identifier>
-          </gmd:identifier>
-
-				</gmd:CI_Citation>
-			</gmd:citation>
-			<gmd:abstract>
-				<gco:CharacterString>High resolution, national, fully Orthorectified colour imagery product. Complements other OS Mastermap® Layers. Regularly maintained and updated. Available to order over the internet.</gco:CharacterString>
-			</gmd:abstract>
-			<gmd:pointOfContact>
-				<gmd:CI_ResponsibleParty>
-					<gmd:organisationName>
-						<gco:CharacterString>Ordnance Survey</gco:CharacterString>
-					</gmd:organisationName>
-					<gmd:positionName>
-						<gco:CharacterString>Customer services</gco:CharacterString>
-					</gmd:positionName>
-					<gmd:contactInfo>
-						<gmd:CI_Contact>
-							<gmd:address>
-								<gmd:CI_Address>
-									<gmd:electronicMailAddress>
-										<gco:CharacterString>customerservices at ordnancesurvey.co.uk</gco:CharacterString>
-									</gmd:electronicMailAddress>
-								</gmd:CI_Address>
-							</gmd:address>
-						</gmd:CI_Contact>
-					</gmd:contactInfo>
-					<gmd:role>
-						<gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_RoleCode" codeListValue="publisher"/>
-					</gmd:role>
-				</gmd:CI_ResponsibleParty>
-			</gmd:pointOfContact>
-			<gmd:resourceMaintenance>
-				<gmd:MD_MaintenanceInformation>
-					<gmd:maintenanceAndUpdateFrequency>
-						<gmd:MD_MaintenanceFrequencyCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_MaintenanceFrequencyCode" codeListValue="asNeeded"/>
-					</gmd:maintenanceAndUpdateFrequency>
-				</gmd:MD_MaintenanceInformation>
-			</gmd:resourceMaintenance>
-			<gmd:descriptiveKeywords>
-				<gmd:MD_Keywords>
-					<gmd:keyword>
-						<gco:CharacterString>Land and premises</gco:CharacterString>
-					</gmd:keyword>
-				</gmd:MD_Keywords>
-			</gmd:descriptiveKeywords>
-			<gmd:descriptiveKeywords>
-				<gmd:MD_Keywords>
-					<gmd:keyword>
-						<gco:CharacterString>Orthoimagery</gco:CharacterString>
-					</gmd:keyword>
-					<gmd:thesaurusName>
-						<gmd:CI_Citation>
-							<gmd:title>
-								<gco:CharacterString>GEMET</gco:CharacterString>
-							</gmd:title>
-							<gmd:date>
-								<gmd:CI_Date>
-									<gmd:date>
-										<gco:Date>2008-06-01</gco:Date>
-									</gmd:date>
-									<gmd:dateType>
-										<gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_DateTypeCode" codeListValue="publication"/>
-									</gmd:dateType>
-								</gmd:CI_Date>
-							</gmd:date>
-						</gmd:CI_Citation>
-					</gmd:thesaurusName>
-				</gmd:MD_Keywords>
-			</gmd:descriptiveKeywords>
-			<gmd:resourceConstraints>
-				<gmd:MD_LegalConstraints>
-					<gmd:accessConstraints>
-						<gmd:MD_RestrictionCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_RestrictionCode" codeListValue="license"/>
-					</gmd:accessConstraints>
-				</gmd:MD_LegalConstraints>
-			</gmd:resourceConstraints>
-			<gmd:resourceConstraints>
-				<gmd:MD_Constraints/>
-			</gmd:resourceConstraints>
-			<gmd:spatialResolution>
-				<gmd:MD_Resolution>
-					<gmd:distance>
-						<gco:Distance uom="urn:ogc:def:uom:EPSG::9001">25</gco:Distance>
-					</gmd:distance>
-				</gmd:MD_Resolution>
-			</gmd:spatialResolution>
-			<gmd:language gco:nilReason="inapplicable"/>
-			<gmd:topicCategory>
-<gmd:MD_TopicCategoryCode>imageryBaseMapsEarthCover</gmd:MD_TopicCategoryCode>
-      </gmd:topicCategory>
-
-			<gmd:extent>
-				<gmd:EX_Extent>
-					<gmd:geographicElement>
-						<gmd:EX_GeographicBoundingBox>
-							<gmd:westBoundLongitude>
-								<gco:Decimal>-8.45472</gco:Decimal>
-							</gmd:westBoundLongitude>
-							<gmd:eastBoundLongitude>
-								<gco:Decimal>1.78024</gco:Decimal>
-							</gmd:eastBoundLongitude>
-							<gmd:southBoundLatitude>
-								<gco:Decimal>49.8634</gco:Decimal>
-							</gmd:southBoundLatitude>
-							<gmd:northBoundLatitude>
-								<gco:Decimal>60.8599</gco:Decimal>
-							</gmd:northBoundLatitude>
-						</gmd:EX_GeographicBoundingBox>
-					</gmd:geographicElement>
-				</gmd:EX_Extent>
-			</gmd:extent>
-		</gmd:MD_DataIdentification>
-	</gmd:identificationInfo>
-	<gmd:distributionInfo>
-		<gmd:MD_Distribution>
-			<gmd:distributionFormat>
-				<gmd:MD_Format>
-					<gmd:name>
-						<gco:CharacterString>JPEG</gco:CharacterString>
-					</gmd:name>
-					<gmd:version>
-						<gco:CharacterString>not applicable</gco:CharacterString>
-					</gmd:version>
-				</gmd:MD_Format>
-			</gmd:distributionFormat>
-			<gmd:transferOptions>
-				<gmd:MD_DigitalTransferOptions>
-					<gmd:onLine>
-						<gmd:CI_OnlineResource>
-							<gmd:linkage>
-								<gmd:URL>http://www.ordnancesurvey.co.uk/oswebsite/products/osmastermap/layers/imagery/</gmd:URL>
-							</gmd:linkage>
-							<gmd:protocol gco:nilReason="missing">
-								<gco:CharacterString/>
-							</gmd:protocol>
-							<gmd:name gco:nilReason="missing">
-								<gco:CharacterString/>
-							</gmd:name>
-							<gmd:function>
-								<gmd:CI_OnLineFunctionCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_OnLineFunctionCode" codeListValue="information"/>
-							</gmd:function>
-						</gmd:CI_OnlineResource>
-					</gmd:onLine>
-				</gmd:MD_DigitalTransferOptions>
-			</gmd:transferOptions>
-		</gmd:MD_Distribution>
-	</gmd:distributionInfo>
-	<gmd:dataQualityInfo>
-		<gmd:DQ_DataQuality>
-			<gmd:scope>
-				<gmd:DQ_Scope>
-					<gmd:level>
-						<gmd:MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_ScopeCode" codeListValue="series"/>
-					</gmd:level>
-				</gmd:DQ_Scope>
-			</gmd:scope>
-			<gmd:report>
-				<gmd:DQ_DomainConsistency>
-					<gmd:result>
-						<gmd:DQ_ConformanceResult>
-							<gmd:specification>
-								<gmd:CI_Citation>
-									<gmd:title>
-										<gco:CharacterString>OS MasterMap Imagery Specification</gco:CharacterString>
-									</gmd:title>
-									<gmd:date>
-										<gmd:CI_Date>
-											<gmd:date>
-												<gco:Date>2010-08-19</gco:Date>
-											</gmd:date>
-											<gmd:dateType>
-												<gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_DateTypeCode" codeListValue="publication"/>
-											</gmd:dateType>
-										</gmd:CI_Date>
-									</gmd:date>
-									<gmd:identifier>
-										<gmd:MD_Identifier>
-											<gmd:code>
-												<gco:CharacterString>http://www.ordnancesurvey.co.uk/oswebsite/products/osmastermap/layers/imagery/technical.html</gco:CharacterString>
-											</gmd:code>
-										</gmd:MD_Identifier>
-									</gmd:identifier>
-								</gmd:CI_Citation>
-							</gmd:specification>
-							<gmd:explanation>
-								<gco:CharacterString>conforms</gco:CharacterString>
-							</gmd:explanation>
-							<gmd:pass>
-								<gco:Boolean>true</gco:Boolean>
-							</gmd:pass>
-						</gmd:DQ_ConformanceResult>
-					</gmd:result>
-				</gmd:DQ_DomainConsistency>
-			</gmd:report><gmd:lineage>
-        <gmd:LI_Lineage>
-          <gmd:statement>
-            <gco:CharacterString>Aerial imagery processed by Ordnance Survey</gco:CharacterString>
-          </gmd:statement>
-        </gmd:LI_Lineage>
-      </gmd:lineage>
-
-		</gmd:DQ_DataQuality>
-	</gmd:dataQualityInfo>
-</gmd:MD_Metadata>


--- a/tests/gemini2_examples/__init__.py	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-#


--- a/tests/gemini2_examples/expected_values.py	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,146 +0,0 @@
-# 00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.xml
-expect_values0 = {
-        'guid': '00a743bf-cca4-4c19-a8e5-e64f7edbcadd',
-        'metadata-language': 'eng',
-        'resource-type': 'dataset',
-        'metadata-point-of-contact': [{'contact-info': {'email': 'gis at barrowbc.gov.uk'}, 'organisation-name': 'Barrow Borough Council', 'role': 'pointOfContact', 'position-name': ''}],
-        'metadata-date': '2009-10-16',
-        'spatial-reference-system': '<gmd:MD_ReferenceSystem xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink"><gmd:referenceSystemIdentifier><gmd:RS_Identifier><gmd:code><gco:CharacterString>urn:ogc:def:crs:EPSG::27700</gco:CharacterString></gmd:code></gmd:RS_Identifier></gmd:referenceSystemIdentifier></gmd:MD_ReferenceSystem>',
-        'title': 'Council Owned Litter Bins',
-        'alternative-title': [],
-        'dataset-reference-date': [
-            {
-                'type': 'creation',
-                'value': '2008-10-10',
-            },{
-                'type': 'revision',
-                'value': '2009-10-08',
-            },
-        ],
-        'date-released': '',
-        'date-updated': '2009-10-08',
-        #'unique-resource-identifier': '<gmd:RS_Identifier xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink"><gmd:code><gco:CharacterString>BBC:000006</gco:CharacterString></gmd:code><gmd:codeSpace><gco:CharacterString>Barrow Borough Council</gco:CharacterString></gmd:codeSpace></gmd:RS_Identifier>',
-        'abstract': 'Location of Council owned litter bins within Borough.',
-        'responsible-organisation': [
-            {
-                'contact-info': {
-                        'email': 'gis at barrowbc.gov.uk',
-                },
-                'organisation-name': 'Barrow Borough Council',
-                'role': 'pointOfContact',
-                'position-name': ''
-            }
-        ],
-        'publisher': '',
-        'contact': 'Barrow Borough Council',
-        'contact-email': 'gis at barrowbc.gov.uk',
-        'frequency-of-update': 'unknown',
-        'keyword-inspire-theme': ['Utility and governmental services'],
-        'keyword-controlled-other': ['Utility and governmental services'],
-        'keyword-free-text': [],
-        'tags': ['Utility and governmental services'],
-        'limitations-on-public-access': ['(e) intellectual property rights;'],
-        'use-constraints': ['conditions unknown'],
-        'spatial-data-service-type': '',
-        'spatial-resolution': '',
-        'equivalent-scale': ['1250'],
-        'dataset-language': ['eng'],
-        'topic-category': ['environment'],
-        'extent-controlled': [],
-        'extent-free-text': [],
-        'bbox-west-long': '-3.32485',
-        'bbox-east-long': '-3.12442',
-        'bbox-north-lat': '54.218407',
-        'bbox-south-lat': '54.039634',
-        'temporal-extent-begin': '1977-03-10T11:45:30',
-        'temporal-extent-end': '2005-01-15T09:10:00',
-        'vertical-extent': '',
-        'coupled-resource': [],
-        'additional-information-source': '',
-        'data-format': [
-            {'version': '', 'name': ''}
-        ],
-        'resource-locator': [
-            {
-                'url': 'http://www.barrowbc.gov.uk',
-                'function': '',
-            }
-        ],
-        'url': '',
-        'conformity-specification': '',
-        'conformity-pass': '',
-        'conformity-explanation': '',
-        'lineage': 'Dataset created from ground surveys using Ordnance Survey Mastemap as base.',
-    }
-
-# My series sample.xml
-expect_values1 = {
-        'guid': '603f921c-79df-4866-ac69-f4acc37e4851',
-        'metadata-language': 'eng',
-        'resource-type': 'series',
-        'metadata-point-of-contact': [{'contact-info': {'email': 'customerservices at ordnancesurvey.co.uk'}, 'organisation-name': 'Ordnance Survey', 'role': 'publisher', 'position-name': 'Customer services'}],
-        'metadata-date': '2010-08-19T17:05:15',
-        'spatial-reference-system': '<gmd:MD_ReferenceSystem xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><gmd:referenceSystemIdentifier><gmd:RS_Identifier><gmd:code><gco:CharacterString>urn:ogc:def:crs:EPSG::4258</gco:CharacterString></gmd:code></gmd:RS_Identifier></gmd:referenceSystemIdentifier></gmd:MD_ReferenceSystem>',
-        'title': u'OS MasterMap\xae Imagery Layer',
-        'alternative-title': [],
-        'dataset-reference-date': [
-            {
-                'type': 'creation',
-                'value': '2004-09-15T16:13:00',
-            },
-        ],
-        'date-released': '',
-        'date-updated': '',
-        #'unique-resource-identifier': '<gmd:RS_Identifier xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><gmd:code><gco:CharacterString>OSMM Imagery</gco:CharacterString></gmd:code><gmd:codeSpace><gco:CharacterString>http://www.ordnancesurvey.co.uk</gco:CharacterString></gmd:codeSpace></gmd:RS_Identifier>',
-        'abstract': u'High resolution, national, fully Orthorectified colour imagery product. Complements other OS Mastermap\xae Layers. Regularly maintained and updated. Available to order over the internet.',
-        'responsible-organisation': [
-            {
-                'contact-info': {
-                    'email': 'customerservices at ordnancesurvey.co.uk'
-                },
-                'organisation-name': 'Ordnance Survey',
-                'role': 'publisher',
-                'position-name': 'Customer services',
-            }
-        ],
-        'publisher': 'Ordnance Survey',
-        'contact': 'Ordnance Survey',
-        'contact-email': 'customerservices at ordnancesurvey.co.uk',
-        'frequency-of-update': 'asNeeded',
-        'keyword-inspire-theme': ['Land and premises', 'Orthoimagery'],
-        'keyword-controlled-other': ['Land and premises', 'Orthoimagery'],
-        'keyword-free-text': [],
-        'tags': ['Land and premises', 'Orthoimagery'],
-        'limitations-on-public-access': [],
-        'use-constraints': [],
-        'spatial-data-service-type': '',
-        'spatial-resolution': '<gco:Distance xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uom="urn:ogc:def:uom:EPSG::9001">25</gco:Distance>',
-        'equivalent-scale': [],
-        'dataset-language': [],
-        'topic-category': ['imageryBaseMapsEarthCover'],
-        'extent-controlled': [],
-        'extent-free-text': [],
-        'bbox-west-long': '-8.45472',
-        'bbox-east-long': '1.78024',
-        'bbox-north-lat': '60.8599',
-        'bbox-south-lat': '49.8634',
-        'temporal-extent-begin': '',
-        'temporal-extent-end': '',
-        'vertical-extent': '',
-        'coupled-resource': [],
-        'additional-information-source': '',
-        'data-format': [
-            {'version': 'not applicable', 'name': 'JPEG'}
-        ],
-        'resource-locator': [
-            {
-                'url': 'http://www.ordnancesurvey.co.uk/oswebsite/products/osmastermap/layers/imagery/',
-                'function': 'information',
-            }
-        ],
-        'url': 'http://www.ordnancesurvey.co.uk/oswebsite/products/osmastermap/layers/imagery/',
-        'conformity-specification': '<gmd:specification xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><gmd:CI_Citation><gmd:title><gco:CharacterString>OS MasterMap Imagery Specification</gco:CharacterString></gmd:title><gmd:date><gmd:CI_Date><gmd:date><gco:Date>2010-08-19</gco:Date></gmd:date><gmd:dateType><gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_DateTypeCode" codeListValue="publication"/></gmd:dateType></gmd:CI_Date></gmd:date><gmd:identifier><gmd:MD_Identifier><gmd:code><gco:CharacterString>http://www.ordnancesurvey.co.uk/oswebsite/products/osmastermap/layers/imagery/technical.html</gco:CharacterString></gmd:code></gmd:MD_Identifier></gmd:identifier></gmd:CI_Citation></gmd:specification>',
-        'conformity-pass': 'true',
-        'conformity-explanation': 'conforms',
-        'lineage': 'Aerial imagery processed by Ordnance Survey',
-    }


--- a/tests/gemini2_examples/index.html	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
- <head>
-  <title>Index of /ckan/tests/gemini2_examples</title>
- </head>
- <body>
-<h1>Index of /ckan/tests/gemini2_examples</h1>
-<table><tr><th><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr><tr><th colspan="5"><hr></th></tr>
-
-<tr><td valign="top"><img src="/icons/back.gif" alt="[DIR]"></td><td><a href="/ckan/tests/">Parent Directory</a></td><td> </td><td align="right">  - </td></tr>
-<tr><td valign="top"><img src="/icons/compressed.gif" alt="[   ]"></td><td><a href="00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.xml">00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.xml</a></td><td align="right">10-Dec-2009 23:11  </td><td align="right">148K</td></tr>
-<tr><td valign="top"><img src="/icons/compressed.gif" alt="[   ]"></td><td><a href="My series sample.xml">My series sample.xml</a></td><td align="right">04-Mar-2010 01:22  </td><td align="right"> 77K</td></tr>
-
-
-</table>
-<address>Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Server at GEMINI examples folder</address>
-</body></html>
-


--- a/tests/gemini2_examples/index.updated.html	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-<html>
- <head>
-  <title>Index of /ckan/tests/gemini2_examples</title>
- </head>
- <body>
-<h1>Index of /ckan/tests/gemini2_examples</h1>
-<table><tr><th><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr><tr><th colspan="5"><hr></th></tr>
-
-<tr><td valign="top"><img src="/icons/back.gif" alt="[DIR]"></td><td><a href="/ckan/tests/">Parent Directory</a></td><td> </td><td align="right">  - </td></tr>
-<tr><td valign="top"><img src="/icons/compressed.gif" alt="[   ]"></td><td><a href="00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.update.xml">00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.update.xml</a></td><td align="right">04-Mar-2010 01:24  </td><td align="right">272K</td></tr>
-<tr><td valign="top"><img src="/icons/compressed.gif" alt="[   ]"></td><td><a href="My series sample.xml">My series sample.xml</a></td><td align="right">04-Mar-2010 01:22  </td><td align="right"> 77K</td></tr>
-
-
-</table>
-<address>Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_wsgi/2.5 Server at GEMINI examples folder</address>
-</body></html>
-


--- a/tests/gemini2_examples_bad/RSS-example.xml	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,727 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet title="XSL_formatting" type="text/xsl" href="/shared/bsp/xsl/rss/nolsol.xsl"?>
-
-<rss xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">  
-  <channel> 
-    <title>BBC News - Home</title>  
-    <link>http://www.bbc.co.uk/go/rss/int/news/-/news/</link>  
-    <description>The latest stories from the Home section of the BBC News web site.</description>  
-    <language>en-gb</language>  
-    <lastBuildDate>Wed, 27 Oct 2010 10:01:33 GMT</lastBuildDate>  
-    <copyright>Copyright: (C) British Broadcasting Corporation, see http://news.bbc.co.uk/2/hi/help/rss/4498287.stm for terms and conditions of reuse.</copyright>  
-    <docs>http://www.bbc.co.uk/syndication/</docs>  
-    <ttl>15</ttl>  
-    <atom:link href="http://feeds.bbci.co.uk/news/rss.xml" rel="self" type="application/rss+xml"/>  
-    <item> 
-      <title>BAA chief urges simpler security</title>  
-      <description>Airport security checks should be made into a "single, coherent process" according to the chief executive of BAA.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/business-11632944</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/business-11632944</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:35:28 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671327_002899628-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Ship fire crew take to lifeboats</title>  
-      <description>About 80 people on board a fishing ship which is on fire 230 miles south-west of the Isles of Scilly take to lifeboats.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-england-cornwall-11633974</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-england-cornwall-11633974</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:41:52 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671659_athena_thor_226.jpg"/> 
-    </item>  
-    <item> 
-      <title>Gorbachev in Nato Afghan warning</title>  
-      <description>Former Soviet leader Mikhail Gorbachev, who withdrew his country's troops from Afghanistan, warns Nato that victory there is not possible.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-south-asia-11633646</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-south-asia-11633646</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:07:58 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671178_010363866-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Battle to reach tsunami survivors</title>  
-      <description>Rescuers struggle to reach hundreds of people believed missing after a tsunami hit a group of remote Indonesian islands, killing at least 154.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-asia-pacific-11632982</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-asia-pacific-11632982</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:33:40 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49656000/jpg/_49656206_010493805-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>No 10 denies climbdown on benefit</title>  
-      <description>Downing Street denies the government is ready to amend its plans to cap the level at which housing benefit can be paid.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-11633163</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-11633163</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:26:46 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49670000/jpg/_49670162_010456322-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>US execution drug 'came from UK'</title>  
-      <description>The US state of Arizona says the drug it used to execute Jeffrey Landrigan was supplied by a British firm, raising concern in the UK, where there is no death penalty.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-us-canada-11630187</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-us-canada-11630187</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:08:14 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669683_010497721-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Virgin speeds up UK cable network</title>  
-      <description>Virgin is turning up the dial on its cable network, offering users some of the fastest speeds in the UK.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/technology-11627507</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/technology-11627507</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:25:01 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671284_000163643-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>All firms 'must offer pensions'</title>  
-      <description>Every UK business should be made to offer a company pension scheme from 2012, according to a government review.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/business-11627135</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/business-11627135</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:46:03 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/47482000/jpg/_47482027_008751885-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Hobbit to be made in New Zealand</title>  
-      <description>Two movies based on The Hobbit will be shot in New Zealand as planned following talks with film executives, the country's prime minister confirms.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/entertainment-arts-11633724</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/entertainment-arts-11633724</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:20:37 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49641000/jpg/_49641317_hobbit1_66getty.jpg"/> 
-    </item>  
-    <item> 
-      <title>More species slide to extinction</title>  
-      <description>One fifth of animal and plant species are threatened by extinction, a global study warns, but conservation efforts have pulled some back from the brink.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/science-environment-11630355</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/science-environment-11630355</guid>  
-      <pubDate>Tue, 26 Oct 2010 22:28:02 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669723_asiancrestedibis464x280.jpg"/> 
-    </item>  
-    <item> 
-      <title>French pension fight goes to vote</title>  
-      <description>France's parliament is set for its final vote on raising the pension age by two years after weeks of industrial action.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-europe-11633178</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-europe-11633178</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:44:22 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49670000/jpg/_49670004_010497617-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Boy in court over girl's murder</title>  
-      <description>A 15-year-old boy is to appear in court charged with the murder of a schoolgirl whose body was found in woodland.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-wales-south-east-wales-11633594</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-wales-south-east-wales-11633594</guid>  
-      <pubDate>Wed, 27 Oct 2010 06:13:05 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49651000/jpg/_49651472_rebecca_224x299.jpg"/> 
-    </item>  
-    <item> 
-      <title>MSPs asked to pass emergency bill</title>  
-      <description>MSPs will be asked to pass emergency laws after a major ruling says police in Scotland can no longer question suspects without access to a lawyer.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-scotland-11631637</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-scotland-11631637</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:11:12 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669802_suoreme_court.jpg"/> 
-    </item>  
-    <item> 
-      <title>Councils uncover £135m of fraud</title>  
-      <description>Almost 120,000 frauds costing £135m were uncovered by English councils last year, the Audit Commission says.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-11633074</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-11633074</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:29:14 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669776_005744025-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Talks over Bonfire Night strike</title>  
-      <description>Talks aimed at averting a strike by London firefighters on Bonfire Night get under way in Southwark.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-england-11632554</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-england-11632554</guid>  
-      <pubDate>Wed, 27 Oct 2010 08:53:39 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669104_010476829-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Inmates 'slopping out' at prison</title>  
-      <description>The prisons watchdog has criticised a jail where inmates have been throwing human waste out of windows because of a lack of night-time toilets.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-11630152</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-11630152</guid>  
-      <pubDate>Tue, 26 Oct 2010 23:24:20 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49668000/jpg/_49668018_prison1.jpg"/> 
-    </item>  
-    <item> 
-      <title>£600m cancer drug fund announced</title>  
-      <description>Patients in England will benefit from a £600m fund to improve access to cancer drugs over the next three years, the government confirms.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/health-11630699</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/health-11630699</guid>  
-      <pubDate>Tue, 26 Oct 2010 23:35:15 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49665000/jpg/_49665269_drugsspl.jpg"/> 
-    </item>  
-    <item> 
-      <title>Revealed - the most popular childrens names...</title>  
-      <description>Oliver has become the most popular boys' name in England and Wales, ending Jack's 14-year reign, with Olivia the top girls' name, statistics reveal.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-11635125</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-11635125</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:53:09 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49672000/jpg/_49672744_001090352-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>...and the top toys on sale this Christmas</title>  
-      <description>Toys linked to films and television programmes dominate a list of top toys for Christmas produced by an industry body.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/business-11630928</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/business-11630928</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:05:06 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49665000/jpg/_49665434_nerf.jpg"/> 
-    </item>  
-    <item> 
-      <title>Hernandez 'justifies cup praise'</title>  
-      <description>Sir Alex Ferguson says Javier Hernandez, who scored a Carling Cup winner as Manchester United beat Wolves 3-2, is "justifying the praise" he is receiving for his form.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/sport1/hi/football/league_cup/9129906.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/sport1/hi/football/league_cup/9129906.stm</guid>  
-      <pubDate>Tue, 26 Oct 2010 22:43:33 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669647_javier226.jpg"/> 
-    </item>  
-    <item> 
-      <title>Birmingham 1-1 Brentford</title>  
-      <description>Brentford bow out of the Carling Cup after Premier League Birmingham beat the brave League One side on penalties.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/sport1/hi/football/league_cup/9059354.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/sport1/hi/football/league_cup/9059354.stm</guid>  
-      <pubDate>Tue, 26 Oct 2010 21:31:48 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669672_brum49.jpg"/> 
-    </item>  
-    <item> 
-      <title>England lose injured star Shenton</title>  
-      <description>England centre Michael Shenton is ruled out of the remainder of the Four Nations after sustaining ankle ligament damage last Saturday in Wellington.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/sport1/hi/rugby_league/9121753.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/sport1/hi/rugby_league/9121753.stm</guid>  
-      <pubDate>Wed, 27 Oct 2010 06:20:29 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49632000/jpg/_49632896_shenton226.jpg"/> 
-    </item>  
-    <item> 
-      <title>Tweddle shrugs off age concerns</title>  
-      <description>Three-time world gymnastics champion Beth Tweddle brushes aside concerns that she may be too old to win gold at the London 2012 Olympics.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/sport1/hi/other_sports/gymnastics/9130711.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/sport1/hi/other_sports/gymnastics/9130711.stm</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:01:58 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49672000/jpg/_49672129_tweddle.jpg"/> 
-    </item>  
-    <item> 
-      <title>McGhee praises Hartley and Bairns</title>  
-      <description>Aberdeen manager Mark McGhee praises Paul Hartley's penalty kicking skill and admits his side were lucky to avoid extra-time in their win over Falkirk.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/sport1/hi/football/teams/a/aberdeen/9129938.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/sport1/hi/football/teams/a/aberdeen/9129938.stm</guid>  
-      <pubDate>Tue, 26 Oct 2010 23:08:34 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669747_mcghee_pressley_466b_sns.jpg"/> 
-    </item>  
-    <item> 
-      <title>11 arrests after boy's stab death</title>  
-      <description>Eleven males are arrested after a 17-year-old boy is stabbed to death in north-west London.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-england-london-11633678</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-england-london-11633678</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:47:18 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671362_scotland-yard-bldg2_getty.jpg"/> 
-    </item>  
-    <item> 
-      <title>Briton swept to her death in US</title>  
-      <description>A 63-year-old British woman dies after being swept out to sea while on holiday in California.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-england-sussex-11633714</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-england-sussex-11633714</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:12:36 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671037_big_sur.jpg"/> 
-    </item>  
-    <item> 
-      <title>Eight councils to share services</title>  
-      <description>Eight local authorities in Scotland are planning to share key services in a bid to save up to £70m over five years.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-scotland-11630814</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-scotland-11630814</guid>  
-      <pubDate>Wed, 27 Oct 2010 08:38:44 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49428000/jpg/_49428801_comp_counciltwo336.jpg"/> 
-    </item>  
-    <item> 
-      <title>Phone apps 'could boost' economy</title>  
-      <description>The "lucrative" market in smartphone applications could be a huge boost to Dundee's digital economy, industry experts say.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-scotland-tayside-central-11626913</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-scotland-tayside-central-11626913</guid>  
-      <pubDate>Tue, 26 Oct 2010 23:34:48 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/47263000/jpg/_47263784_pic1.jpg"/> 
-    </item>  
-    <item> 
-      <title>UVF 'riots involvement worrying'</title>  
-      <description>The UVF were involved in a second night of rioting in which children as young as nine were present, a senior police officer says.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-northern-ireland-11633699</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-northern-ireland-11633699</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:40:54 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671202_burningbus.jpg"/> 
-    </item>  
-    <item> 
-      <title>Officer suspended over suicide</title>  
-      <description>A police officer in NI has been suspended and a number of others are to face disciplinary action over the death in custody of a dissident republican.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-northern-ireland-11631895</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-northern-ireland-11631895</guid>  
-      <pubDate>Wed, 27 Oct 2010 08:05:41 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669322_johnbrady.jpg"/> 
-    </item>  
-    <item> 
-      <title>Rail disabled access criticised</title>  
-      <description>More than half of Wales' railway stations are not fully accessible to disabled people, according to a report.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-wales-11632230</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-wales-11632230</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:40:11 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/48902000/jpg/_48902079_newstation.jpg"/> 
-    </item>  
-    <item> 
-      <title>Two hurt in estate house fires</title>  
-      <description>Two people are rescued by firefighters in two separate houses fires within an hour of each other on a Wrexham housing estate.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-wales-north-east-wales-11632427</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-wales-north-east-wales-11632427</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:46:53 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49673000/gif/_49673050_firecaiapark-001.gif"/> 
-    </item>  
-    <item> 
-      <title>Nigeria intercepts arms shipment</title>  
-      <description>A large shipment of weapons is seized by Nigeria's secret police at a port in the city of Lagos.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-africa-11634885</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-africa-11634885</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:39:18 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49672000/jpg/_49672580_73840094.jpg"/> 
-    </item>  
-    <item> 
-      <title>Zimbabwe FA fires chief executive</title>  
-      <description>The chief executive of the Zimbabwe Football Association Henrietta Rushwaya is fired after being caught up in an alleged match-fixing scandal.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/sport1/hi/football/africa/9129175.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/sport1/hi/football/africa/9129175.stm</guid>  
-      <pubDate>Tue, 26 Oct 2010 15:24:56 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49665000/jpg/_49665411_henrietta_rushwaya08_66.jpg"/> 
-    </item>  
-    <item> 
-      <title>Indonesian volcano toll hits 25</title>  
-      <description>The death toll following the eruption of Indonesia's volatile Mt Merapi volcano rises to 25, amid fears of major fresh activity.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-asia-pacific-11633213</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-asia-pacific-11633213</guid>  
-      <pubDate>Wed, 27 Oct 2010 08:36:58 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49670000/jpg/_49670071_010500565-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>UN warns on Vietnam birth ratio</title>  
-      <description>Sex ratios at birth are becoming increasingly imbalanced in Vietnam, with far more boys being born than girls, the UN Population Fund says.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-asia-pacific-11627426</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-asia-pacific-11627426</guid>  
-      <pubDate>Tue, 26 Oct 2010 13:37:35 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49660000/jpg/_49660930_010309860-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>EU 'signs off' hedge fund rules</title>  
-      <description>The European Union agrees on the final form of a set of rules to provide tighter regulation of hedge funds and private equity firms.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/business-11632298</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/business-11632298</guid>  
-      <pubDate>Tue, 26 Oct 2010 19:04:50 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/47867000/jpg/_47867655_hedgefunds.jpg"/> 
-    </item>  
-    <item> 
-      <title>Pope urges migrants to integrate</title>  
-      <description>Pope Benedict calls on immigrants to respect the laws of host countries, in remarks likely to add to the European debate on integration.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-europe-11629857</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-europe-11629857</guid>  
-      <pubDate>Tue, 26 Oct 2010 16:57:28 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49665000/jpg/_49665499_010485130-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Mexico head stresses US drug role</title>  
-      <description>Mexico's President Felipe Calderon tells the BBC that the US should do more to help tackle the illegal drugs trade that has seen 28,000 deaths in his country.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-latin-america-11633914</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-latin-america-11633914</guid>  
-      <pubDate>Wed, 27 Oct 2010 08:51:47 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671805_49670955.jpg"/> 
-    </item>  
-    <item> 
-      <title>Fatal bug outbreak worries Brazil</title>  
-      <description>An outbreak of a drug-resistant strain of bacteria worries doctors in Brazil after a rising number of infections leads to 18 deaths in the capital, Brasilia.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-latin-america-11633044</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-latin-america-11633044</guid>  
-      <pubDate>Wed, 27 Oct 2010 00:12:28 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669789_kpcafp.jpg"/> 
-    </item>  
-    <item> 
-      <title>Tariq Aziz is sentenced to death</title>  
-      <description>Tariq Aziz, for many years the international face of Iraq under Saddam Hussein, is sentenced to death by the Iraqi Supreme Court.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-middle-east-11625501</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-middle-east-11625501</guid>  
-      <pubDate>Tue, 26 Oct 2010 20:12:38 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49656000/jpg/_49656435_010248549-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Iran fuels first nuclear reactor</title>  
-      <description>Iran begins fuelling its first nuclear power station at Bushehr, despite Western unease over its nuclear ambitions.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-middle-east-11625058</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-middle-east-11625058</guid>  
-      <pubDate>Tue, 26 Oct 2010 09:39:27 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49656000/jpg/_49656457_010272625-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Unknown cast as Life of Pi lead</title>  
-      <description>Oscar-winning director Ang Lee casts an unknown actor from India to star in his latest movie, an adaption of the novel Life of Pi.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/entertainment-arts-11634003</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/entertainment-arts-11634003</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:10:24 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49672000/jpg/_49672072_004678474-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Plea over arrested Indian rebel</title>  
-      <description>The family of a separatist leader from India's Manipur state, who was arrested earlier this month, urges the government to disclose his whereabouts.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-south-asia-11633604</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-south-asia-11633604</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:22:36 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49670000/jpg/_49670755_meghen304.jpg"/> 
-    </item>  
-    <item> 
-      <title>Mid-term spending nears $2bn mark</title>  
-      <description>US House and Senate candidate spending nears the $2bn (£1.2bn) mark for the first time, with elections just one week away, a watchdog group says.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-us-canada-11630884</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-us-canada-11630884</guid>  
-      <pubDate>Tue, 26 Oct 2010 22:52:33 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49666000/jpg/_49666576_49662217.jpg"/> 
-    </item>  
-    <item> 
-      <title>Canadian revelled in US killing</title>  
-      <description>Omar Khadr consoled himself during his detention with memories of killing a US soldier in Afghanistan in 2002, a military tribunal hears.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-us-canada-11632651</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-us-canada-11632651</guid>  
-      <pubDate>Wed, 27 Oct 2010 00:27:55 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/gif/_49669334_xdzo7bdv.gif"/> 
-    </item>  
-    <item> 
-      <title>EMI case banker 'can't remember'</title>  
-      <description>A Citigroup banker says he cannot remember key phone calls with Terra Firma boss Guy Hands, in the EMI court case.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/business-11633514</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/business-11633514</guid>  
-      <pubDate>Wed, 27 Oct 2010 06:56:25 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49545000/jpg/_49545393_emi.jpg"/> 
-    </item>  
-    <item> 
-      <title>BAA sees sharply reduced losses</title>  
-      <description>UK airports operator BAA reports a significant reduction in losses and strong growth in passenger numbers.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/business-11633534</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/business-11633534</guid>  
-      <pubDate>Wed, 27 Oct 2010 06:42:09 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671006_006317854-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Deutsche sees loss of 1.2bn euros</title>  
-      <description>Deutsche Bank reports a loss for the third quarter, brought about by costs related to its planned purchase of Deutsche Postbank.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/business-11634666</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/business-11634666</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:32:37 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49050000/jpg/_49050943_deutschebank.jpg"/> 
-    </item>  
-    <item> 
-      <title>UK recovery steady, says Osborne</title>  
-      <description>George Osborne says better-than-expected economic figures show the recovery is "steady", but Labour warns that spending cuts will damage performance.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-politics-11627746</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-politics-11627746</guid>  
-      <pubDate>Tue, 26 Oct 2010 16:17:34 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49657000/jpg/_49657868_010491526-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Clegg fury over 'cleansing' claim</title>  
-      <description>Deputy Prime Minister Nick Clegg denies Labour claims that large cities will be "cleansed" of poor people following cuts to housing benefits.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-politics-11627021</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-politics-11627021</guid>  
-      <pubDate>Tue, 26 Oct 2010 14:39:32 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49662000/jpg/_49662228_010465636-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Transport schemes get green light</title>  
-      <description>Transport Secretary Philip Hammond gives the green light for 16 road, bus and rail improvement schemes which he says are a "key driver" of future growth.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-politics-11630252</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-politics-11630252</guid>  
-      <pubDate>Tue, 26 Oct 2010 16:05:31 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49662000/jpg/_49662310_009851648-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Tall men risk testicular cancer</title>  
-      <description>Taller men appear to be at increased risk of testicular cancer, US experts discover, after surveying data on 10,000 men.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/health-11628266</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/health-11628266</guid>  
-      <pubDate>Tue, 26 Oct 2010 23:34:52 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49663000/jpg/_49663432_tall2spl.jpg"/> 
-    </item>  
-    <item> 
-      <title>Call for more club paramedics</title>  
-      <description>A&E doctors say nightclubs have a responsibility to employ more qualified paramedics to ease the strain on hospitals.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/newsbeat/11631560</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/newsbeat/11631560</guid>  
-      <pubDate>Wed, 27 Oct 2010 05:27:54 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49667000/jpg/_49667602_hi001173499.jpg"/> 
-    </item>  
-    <item> 
-      <title>'Contraceptive gel' shows promise</title>  
-      <description>A birth control gel that is applied directly to the skin could offer women an alternative to the Pill, say experts presenting latest trial data.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/health-11619044</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/health-11619044</guid>  
-      <pubDate>Mon, 25 Oct 2010 23:14:34 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49643000/jpg/_49643526_skincarespl.jpg"/> 
-    </item>  
-    <item> 
-      <title>UK young people feel 'isolated'</title>  
-      <description>More than a third of young people in the UK aged 16 to 24 do not feel part of their local community, research by the Prince's Trust suggests.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/education-11629544</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/education-11629544</guid>  
-      <pubDate>Tue, 26 Oct 2010 23:22:25 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49666000/jpg/_49666033_street1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Baby P 'failed by all agencies'</title>  
-      <description>Reports show Baby Peter's "horrifying death" was down to the incompetence of almost every member of staff who came into contact with him.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/education-11621391</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/education-11621391</guid>  
-      <pubDate>Tue, 26 Oct 2010 12:49:26 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49650000/jpg/_49650692_007776957-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Humanities to lose teaching grant</title>  
-      <description>David Willetts suggests university teaching grants for arts, humanities and social sciences will be phased out.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/education-11627843</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/education-11627843</guid>  
-      <pubDate>Tue, 26 Oct 2010 14:16:54 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49662000/jpg/_49662231_008031611-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Yahoo Mail gets major revamp</title>  
-      <description>Yahoo Mail is getting its biggest redesign since 2005 to make it a message hub for its 279 million users.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/technology-11624822</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/technology-11624822</guid>  
-      <pubDate>Tue, 26 Oct 2010 23:35:42 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49136000/jpg/_49136645_img_6657.jpg"/> 
-    </item>  
-    <item> 
-      <title>UN urges Wikileaks torture probe</title>  
-      <description>The US and Iraq should investigate claims by the Wikileaks website that Iraqi forces tortured citizens during the US-led war, the UN says.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-middle-east-11632839</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-middle-east-11632839</guid>  
-      <pubDate>Tue, 26 Oct 2010 21:45:59 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669458_72560664(1).jpg"/> 
-    </item>  
-    <item> 
-      <title>Users lax about mobile security</title>  
-      <description>Seven out of 10 people store sensitive information on their phones with no security, new research has found.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/technology-11634069</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/technology-11634069</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:36:15 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49672000/jpg/_49672618_010203589-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>US lab clears Higgs hunt hurdle</title>  
-      <description>An expert panel has recommended extending the lifetime of a US "particle smasher" by three years.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/science-environment-11630358</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/science-environment-11630358</guid>  
-      <pubDate>Tue, 26 Oct 2010 21:56:38 GMT</pubDate> 
-    </item>  
-    <item> 
-      <title>Assassin bug mimics spider prey</title>  
-      <description>Scientists have described how a species of insect, known as assassin bugs, lures spiders by mimicking prey caught in webs.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/science-environment-11628322</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/science-environment-11628322</guid>  
-      <pubDate>Wed, 27 Oct 2010 03:52:40 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49664000/jpg/_49664367_img_8408_b.jpg"/> 
-    </item>  
-    <item> 
-      <title>European sat-nav contract awarded</title>  
-      <description>The German-led consortium SpaceOpal will run the satellite system that will form Europe's answer to GPS, known as Galileo.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/science-environment-11630032</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/science-environment-11630032</guid>  
-      <pubDate>Tue, 26 Oct 2010 14:17:58 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49662000/jpg/_49662295_49656181.jpg"/> 
-    </item>  
-    <item> 
-      <title>Walliams wife wins Playboy case</title>  
-      <description>Model Lara Stone, the wife of comic actor David Walliams, wins damages from French Playboy after it published unauthorised photos of her.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/entertainment-arts-11634724</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/entertainment-arts-11634724</guid>  
-      <pubDate>Wed, 27 Oct 2010 08:47:43 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/48516000/jpg/_48516647_lara.jpg"/> 
-    </item>  
-    <item> 
-      <title>Take That and Robbie confirm tour</title>  
-      <description>Robbie Williams is to tour with Take That for the first time in 16 years when the reunited group go on a stadium tour next summer.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/entertainment-arts-11625892</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/entertainment-arts-11625892</guid>  
-      <pubDate>Tue, 26 Oct 2010 10:22:12 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49655000/jpg/_49655200_010493211-2.jpg"/> 
-    </item>  
-    <item> 
-      <title>Sheen released from NY hospital</title>  
-      <description>Two and a Half Men actor Charlie Sheen is released from hospital following an "episode" in a New York hotel.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/entertainment-arts-11633726</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/entertainment-arts-11633726</guid>  
-      <pubDate>Wed, 27 Oct 2010 08:40:25 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/48674000/jpg/_48674100_sheen2_66ap.jpg"/> 
-    </item>  
-    <item> 
-      <title>Could you stay silent for eight days?</title>  
-      <description>With constant communication and 24hr television, it is hard to find even eight minutes of silence. But what would happen if you were asked to stay quiet for over a week?</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/magazine-11588293</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/magazine-11588293</guid>  
-      <pubDate>Tue, 26 Oct 2010 10:17:26 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49657000/jpg/_49657523_lips2_think466indx.jpg"/> 
-    </item>  
-    <item> 
-      <title>What's behind the all-powerful 'i'?</title>  
-      <description>The UK has a new national newspaper, which its creators have called i. So what is it about the letter that has made it so popular?</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/magazine-11625862</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/magazine-11625862</guid>  
-      <pubDate>Tue, 26 Oct 2010 13:15:39 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49658000/jpg/_49658611_threeis.jpg"/> 
-    </item>  
-    <item> 
-      <title>Meet the Simpsons from Springfield</title>  
-      <description>The third in a series looking at the US elections through the prism of popular television shows turns to a family with a very famous surname.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/magazine-11626255</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/magazine-11626255</guid>  
-      <pubDate>Tue, 26 Oct 2010 12:24:08 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49659000/jpg/_49659779_simpsons_ap144.jpg"/> 
-    </item>  
-    <item> 
-      <title>Nick Clegg rejects social 'cleansing' claims</title>  
-      <description>Deputy Prime Minister Nick Clegg has fiercely criticised a Labour frontbencher for suggesting that the coalition was "sociologically cleansing" poorer citizens out of London.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/democracylive/hi/house_of_commons/newsid_9125000/9125499.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/democracylive/hi/house_of_commons/newsid_9125000/9125499.stm</guid>  
-      <pubDate>Tue, 26 Oct 2010 14:06:36 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49665000/jpg/_49665120_-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Government faces call to scrap Lords reform</title>  
-      <description>Ministers have been urged to scrap plans to make the House of Lords a directly elected chamber.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/democracylive/hi/house_of_lords/newsid_9124000/9124431.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/democracylive/hi/house_of_lords/newsid_9124000/9124431.stm</guid>  
-      <pubDate>Tue, 26 Oct 2010 14:30:37 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49668000/jpg/_49668084_-30.jpg"/> 
-    </item>  
-    <item> 
-      <title>Live: Health Committee</title>  
-      <description>The Health Committee is scrutinising the Palliative Care Bill.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/democracylive/hi/scotland/newsid_8167000/8167433.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/democracylive/hi/scotland/newsid_8167000/8167433.stm</guid>  
-      <pubDate>Thu, 28 Jan 2010 15:02:58 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/46897000/jpg/_46897140_untitledsequence01.jpg"/> 
-    </item>  
-    <item> 
-      <title>Test tube miracles</title>  
-      <description>25 years of IVF treatment at one of the UK's first dedicated centres</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/health-11442887</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/health-11442887</guid>  
-      <pubDate>Sat, 16 Oct 2010 23:22:05 GMT</pubDate>  
-      <media:thumbnail width="3000" height="1800" url="http://news.bbcimg.co.uk/media/images/49316000/jpg/_49316669_care2.jpg"/> 
-    </item>  
-    <item> 
-      <title>James Bond's Aston Martin for sale</title>  
-      <description>James Bond's gadget-packed 1964 Aston Martin DB5 - the one from Goldfinger and Thunderball - is expected to fetch millions of pounds at a lavish car auction in London on Wednesday.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-11632694</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-11632694</guid>  
-      <pubDate>Wed, 27 Oct 2010 05:44:51 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49668000/jpg/_49668933_jex_849184_de27-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>How US state deals with drink crime</title>  
-      <description>A stringent project designed to curb alcohol-related crime in the US state of South Dakota is to be used as a model for a project in the UK.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-us-canada-11628372</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-us-canada-11628372</guid>  
-      <pubDate>Wed, 27 Oct 2010 05:23:41 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49659000/jpg/_49659892_jex_848501_de27-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Indonesia struggles with twin disasters</title>  
-      <description>Rescue teams are trying to reach remote islands to save survivors from a tsunami while in Java authorities are moving people away from the volcano Mount Merapi</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-asia-pacific-11633864</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-asia-pacific-11633864</guid>  
-      <pubDate>Wed, 27 Oct 2010 08:10:00 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49670000/jpg/_49670971_jex_849404_de27-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Inside a Haiti camp threatened by cholera</title>  
-      <description>The Haitian government tries to prevent a cholera outbreak in the north-west of the country moving to the capital Port-au-Prince.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-latin-america-11633216</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-latin-america-11633216</guid>  
-      <pubDate>Wed, 27 Oct 2010 04:06:45 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49670000/jpg/_49670088_jex_849334_de27-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Night protest over Italian waste dump</title>  
-      <description>Thousands of people took part in an all-night march between Pompeii and Terzigno on Tuesday in protest at the government's plans to open a second waste dump in Terzigno.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-europe-11633366</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-europe-11633366</guid>  
-      <pubDate>Wed, 27 Oct 2010 05:13:01 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49670000/jpg/_49670228_jex_849361_de27-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Emperor stag shot on Exmoor</title>  
-      <description>A 9ft-tall Exmoor stag called the Emperor, thought to be the biggest wild land animal in the UK, has been shot.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-11629416</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-11629416</guid>  
-      <pubDate>Tue, 26 Oct 2010 16:41:57 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49665000/jpg/_49665742_jex_849051_de27-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>US mid-term election sprint takes off</title>  
-      <description>After months of campaigning and more than $2bn (£1.3bn) spent, there is just one week to go until the mid-term elections. Katty Kay looks at the seven-day sprint.</description>  
-      <link>http://news.bbc.co.uk/go/rss/int/news/-/1/hi/programmes/world_news_america/9129909.stm</link>  
-      <guid isPermaLink="false">http://news.bbc.co.uk/1/hi/programmes/world_news_america/9129909.stm</guid>  
-      <pubDate>Tue, 26 Oct 2010 22:28:14 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669661_-21.jpg"/> 
-    </item>  
-    <item> 
-      <title>Dutch orchestra's musical protest</title>  
-      <description>Members of the Dutch orchestra demonstrated against funding cuts by staging a concert at The Hague central railway station.</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-europe-11628382</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-europe-11628382</guid>  
-      <pubDate>Tue, 26 Oct 2010 11:54:13 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49660000/jpg/_49660190_jex_848630_de18-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>World's weirdest migration?</title>  
-      <description>A megaphone, a microlight, and some confused birds</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/science-environment-11574073</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/science-environment-11574073</guid>  
-      <pubDate>Wed, 27 Oct 2010 04:11:35 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49578000/jpg/_49578851_birdsandsecondmicrolight-5958.jpg"/> 
-    </item>  
-    <item> 
-      <title>Voice of an angel</title>  
-      <description>Charlotte Church on fame, family and music</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/entertainment-arts-11606165</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/entertainment-arts-11606165</guid>  
-      <pubDate>Wed, 27 Oct 2010 08:14:54 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49671000/jpg/_49671242_charl.jpg"/> 
-    </item>  
-    <item> 
-      <title>Please don't marry me</title>  
-      <description>Why would a straight couple want a civil partnership?</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/magazine-11625835</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/magazine-11625835</guid>  
-      <pubDate>Wed, 27 Oct 2010 09:34:09 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49660000/jpg/_49660519_katherinetom_afp.jpg"/> 
-    </item>  
-    <item> 
-      <title>Feline female</title>  
-      <description>Why do some women devote their lives to cats?</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/magazine-11588413</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/magazine-11588413</guid>  
-      <pubDate>Wed, 27 Oct 2010 07:48:25 GMT</pubDate>  
-      <media:thumbnail width="144" height="81" url="http://news.bbcimg.co.uk/media/images/49663000/jpg/_49663646_pat_and_cat_bbc_144x81.jpg"/> 
-    </item>  
-    <item> 
-      <title>Dream to die</title>  
-      <description>Pakistani boy who wanted to be a suicide bomber</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-south-asia-11632707</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-south-asia-11632707</guid>  
-      <pubDate>Tue, 26 Oct 2010 22:25:44 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669432_image.jpg"/> 
-    </item>  
-    <item> 
-      <title>Fuelling the economy</title>  
-      <description>Life on the £200m gas platform that can be used again and again</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/uk-11633155</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/uk-11633155</guid>  
-      <pubDate>Wed, 27 Oct 2010 03:08:56 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49669000/jpg/_49669963_jex_849302_de27-1.jpg"/> 
-    </item>  
-    <item> 
-      <title>Speed freaks</title>  
-      <description>Could you stomach the world's fastest rollercoaster?</description>  
-      <link>http://www.bbc.co.uk/go/rss/int/news/-/news/world-middle-east-11620485</link>  
-      <guid isPermaLink="false">http://www.bbc.co.uk/news/world-middle-east-11620485</guid>  
-      <pubDate>Tue, 26 Oct 2010 23:40:52 GMT</pubDate>  
-      <media:thumbnail width="66" height="49" url="http://news.bbcimg.co.uk/media/images/49651000/jpg/_49651654_010279540-1.jpg"/> 
-    </item> 
-  </channel> 
-</rss>


--- a/tests/test_functional.py	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-from pylons import config
-
-from ckan import model
-from ckan.tests import WsgiAppCase, CkanServerCase, url_for
-from ckan.tests.html_check import HtmlCheckMethods
-from ckan.lib.create_test_data import CreateTestData
-
-class TestHarvest(WsgiAppCase, HtmlCheckMethods, CkanServerCase):
-    @classmethod
-    def setup_class(cls):
-        cls.view_controller = 'ckanext.harvest.controllers.view:ViewController'
-        # create sysadmin user with apikey matching that in test-core.ini
-        rev = model.repo.new_revision() 
-        model.Session.add(model.User(name=u'tester', apikey=u'testkey'))
-        model.repo.commit_and_remove()
-        rev = model.repo.new_revision() 
-        tester = model.User.by_name(u'testsysadmin')
-        model.add_user_to_role(model.User.by_name(u'tester'),
-                               model.Role.ADMIN, model.System())
-        model.repo.commit_and_remove()
-        cls.extra_environ = {'REMOTE_USER': 'tester'}
-
-        from ckanext.harvest.model import setup as harvest_setup
-        harvest_setup()
-
-##        cls.ckan_process = cls._start_ckan_server(config['__file__'])
-##        cls._wait_for_url()
-
-##    @classmethod
-##    def teardown_class(cls):
-##        cls._stop_ckan_server(cls.ckan_process)
-
-    def test_not_logged_in(self):
-        offset = url_for(controller=self.view_controller,
-                         action='index')
-        res = self.app.get(offset, status=302)
-
-    def test_harvest_index(self):
-        offset = url_for(controller=self.view_controller,
-                         action='index',
-                         )
-        res = self.app.get(offset, extra_environ=self.extra_environ)
-        # status is 200 although it displays an error of not being able to
-        # access the api.


--- a/tests/test_model.py	Mon Jul 18 17:35:32 2011 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,389 +0,0 @@
-import os
-from lxml import etree
-
-from nose.plugins.skip import SkipTest
-
-from ckan import model
-from ckanext.harvest.model import HarvestSource
-from ckanext.harvest.model import HarvestingJob
-from ckanext.harvest.model import HarvestedDocument
-from ckanext.harvest.controllers.harvesting import HarvestingJobController
-
-from ckan.tests import *
-from gemini2_examples.expected_values import expect_values0
-from gemini2_examples.expected_values import expect_values1
-
-
-class HarvesterTestCase(TestCase):
-
-    require_common_fixtures = False
-
-    def setup(self):
-        CreateTestData.create()
-        self.gemini_example = GeminiExamples()
-
-    def teardown(self):
-        model.repo.rebuild_db()
-
-
-class TestHarvestSource(HarvesterTestCase):
-
-    def test_create_delete_harvest_source(self):
-        url = self.gemini_example.url_for(file_index=0)
-        source = HarvestSource(url=url)
-        source.save()
-        source_id = source.id
-        source = HarvestSource.get(source_id)
-        self.assert_true(source.id)
-        self.assert_equal(source.url, url)
-        self.delete(source)
-        self.commit()
-        self.assert_raises(Exception, HarvestSource.get, source_id)
-
-    def test_write_package_and_delete_source(self):
-        """Create a package, then ensure that deleting its source
-        doesn't delete the package.
-        """
-        #raise SkipTest('This needs fixing, but JG is going to refactor this. 2011-2-10.')
-        url = self.gemini_example.url_for(file_index=0)
-        source = HarvestSource(url=url)
-        count_before_write = self.count_packages()
-        job = HarvestingJob(source=source,
-                            user_ref="me")
-        controller = HarvestingJobController(job)
-        controller.harvest_documents()
-        count_after_write = self.count_packages()
-        self.assert_equal(count_after_write, count_before_write + 1)
-        self.delete_commit(source)
-        count_after_delete = self.count_packages()
-        self.assert_equal(count_after_delete, count_after_write)
-
-    def _make_package_from_source(self):
-        return package, source
-
-
-class TestHarvestingJob(HarvesterTestCase):
-
-    fixture_user_ref = u'publisheruser1'
-
-    def setup(self):
-        super(TestHarvestingJob, self).setup()
-        self.source = HarvestSource(
-            url=self.gemini_example.url_for(file_index=0)
-        )
-        self.job = HarvestingJob(
-            source=self.source,
-            user_ref=self.fixture_user_ref
-        )
-        self.job.save()
-        self.controller = HarvestingJobController(self.job)
-        self.job2 = None
-        self.source2 = None
-
-    def teardown(self):
-        if self.job2:
-            self.delete(self.job2)
-        if self.source2:
-            self.delete(self.source2)
-        super(TestHarvestingJob, self).teardown()
-
-    def test_create_and_delete_job(self):
-        self.assert_equal(self.job.source_id, self.source.id)
-        self.delete_commit(self.job)
-        self.assert_raises(Exception, HarvestingJob.get, self.job.id)
-        # - check source has not been deleted!
-        HarvestSource.get(self.source.id)
-
-    def test_harvest_documents(self):
-        before_count = self.count_packages()
-        job = self.controller.harvest_documents()
-        after_count = self.count_packages()
-        self.assert_equal(after_count, before_count + 1)
-        self.assert_equal(job.source.documents[0].package.name,
-                          (job.report['added'][0]))
-        self.assert_true(job.report)
-        self.assert_len(job.report['errors'], 0)
-        self.assert_len(job.report['added'], 1)
-
-    def test_harvest_documents_twice_unchanged(self):
-        job = self.controller.harvest_documents()
-        self.assert_len(job.report['errors'], 0)
-        self.assert_len(job.report['added'], 1)
-        job2 = HarvestingJobController(
-            HarvestingJob(
-                source=self.source,
-                user_ref=self.fixture_user_ref
-                )
-            ).harvest_documents()
-        self.assert_len(job2.report['errors'], 0)
-        self.assert_len(job2.report['added'], 0)
-
-    def test_harvest_documents_twice_changed(self):
-        job = self.controller.harvest_documents()
-        self.assert_len(job.report['errors'], 0)
-        self.assert_len(job.report['added'], 1)
-        self.source.url = self.gemini_example.url_for(file_index=2)
-        self.source.save()
-        job2 = HarvestingJobController(
-            HarvestingJob(
-                source=self.source,
-                user_ref=self.fixture_user_ref
-                )
-            ).harvest_documents()
-        self.assert_len(job2.report['errors'], 0)
-        self.assert_len(job2.report['added'], 1)
-
-    def test_harvest_documents_source_guid_contention(self):
-        job = self.controller.harvest_documents()
-        source2 = HarvestSource(
-            url=self.gemini_example.url_for(file_index=2),
-        )
-        # Make sure it has an id by saving it
-        source2.save()
-        job2 = HarvestingJobController(
-            HarvestingJob(
-                source=source2,
-                user_ref=self.fixture_user_ref
-                )
-            ).harvest_documents()
-        error = job2.report['errors'][0]
-        # XXX Should not allow file:// URLs, security implications
-        # The one that is conflicting doesn't have a user or publisher set up, otherwise the integers would show here
-        assert 'Another source' in error
-        assert 'ckan/tests/gemini2_examples/00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.xml' in error
-        assert 'is using metadata GUID 00a743bf-cca4-4c19-a8e5-e64f7edbcadd' in error
-
-    def test_harvest_bad_source_url(self):
-        source = HarvestSource(
-            url=self.gemini_example.url_for_bad(0)
-            )
-        job = HarvestingJob(
-            source=source,
-            user_ref=self.fixture_user_ref
-            )
-        before_count = self.count_packages()
-        self.assert_false(job.report['added'])
-        self.assert_false(job.report['errors'])
-        job = HarvestingJobController(job).harvest_documents()
-        after_count = self.count_packages()
-        self.assert_equal(after_count, before_count)
-        self.assert_len(job.report['added'], 0)
-        self.assert_len(job.report['errors'], 1)
-        error = job.report['errors'][0]
-        self.assert_contains(error,
-                             'Unable to detect source type from content')
-
-
-class TestHarvesterSourceTypes(HarvesterTestCase):
-
-    fixture_user_ref = u'publisheruser1'
-
-    def setup(self):
-        self.gemini_example = GeminiExamples()
-        # XXX put real-life CSW examples here if you want, and if they
-        # arrive...
-        self.sources = [
-            (
-                'http://127.0.0.1:44444',
-                {
-                    'errors': ["Error harvesting source: Unable to get content for URL: http://127.0.0.1:44444: URLError(error(111, 'Connection refused'),)"],
-                    'packages': 0,
-                    'documents': 0,
-                },
-            ),
-            (
-                'http://www.google.com',
-                {
-                    'errors': ["Couldn't find any links to metadata"],
-                    'packages': 0,
-                    'documents': 0,
-                },
-            ),
-            (
-                self.gemini_example.url_for(file_index='index.html'),
-                {
-                    'errors': [],
-                    'packages': 2,
-                    'documents': 2,
-                },
-            ),
-        ]
-        self.updated_sources = [
-            (
-                self.gemini_example.url_for(file_index='index.updated.html'),
-                {
-                    'errors': [],
-                    'packages': 2,
-                    'documents': 2,
-                },
-            ),
-        ]
-
-    def test_various_sources(self):
-        sources = []
-        for url, expected in self.sources:
-            source = HarvestSource(url=url)
-            # Create an ID for it
-            source.save()
-            sources.append(source)
-            job = HarvestingJob(
-                source=source,
-                user_ref=self.fixture_user_ref
-            )
-            before_count = self.count_packages()
-            self.assert_false(job.report['added'])
-            self.assert_false(job.report['errors'])
-            job = HarvestingJobController(job).harvest_documents()
-            after_count = self.count_packages()
-            self.assert_equal(after_count,
-                              before_count + expected['packages'])
-            for (idx, error) in enumerate(job.report['errors']):
-                assert expected['errors'][idx] in error
-            # report['added'] is a list, appended to each time a
-            # package is touched.
-            self.assert_equal(
-                len(job.source.documents),
-                expected['documents'],
-            )
-            for (idx, doc) in enumerate(job.source.documents):
-                self.assert_true(doc.package)
-                assert (doc.package.name in job.report['added'])
-
-        # Now test updated sources
-        for url, expected in self.updated_sources:
-            sources[-1].url = url
-            sources[-1].save()
-            job = HarvestingJob(
-                # We'll use the last source updated above to test updating a 
-                # document
-                source=sources[-1],
-                user_ref=self.fixture_user_ref
-            )
-            self.assert_false(job.report['added'])
-            self.assert_false(job.report['errors'])
-            before_count = self.count_packages()
-            before_content = [doc.content for doc in job.source.documents]
-            job = HarvestingJobController(job).harvest_documents()
-            after_count = self.count_packages()
-            after_content = [doc.content for doc in job.source.documents]
-            self.assert_true(after_count == before_count == long(expected['packages']))
-            # Represents an updated record
-            self.assert_equal(len(job.report['added']), 1)
-            self.assert_equal(
-                len(job.source.documents),
-                expected['documents'],
-            )
-            self.assert_false(before_content == after_content)
-
-class TestHarvestedDocument(HarvesterTestCase):
-    def test_01_document_revisioned(self):
-        url = self.gemini_example.url_for(0)
-        model.repo.new_revision()
-        content = self.gemini_example.get_from_url(url)
-        document = HarvestedDocument(content=content)
-        document.save()
-        assert len(document.all_revisions_unordered) == 1
-
-        model.repo.new_revision()
-        url = self.gemini_example.url_for(1)
-        content = self.gemini_example.get_from_url(url)
-        document.content = content
-        document.save()
-        model.Session().expire(document)
-        assert len(document.all_revisions) == 2
-
-        document_id = document.id
-        self.assert_equal(document.content, content)
-
-        self.delete_commit(document)
-        self.assert_raises(Exception, HarvestedDocument.get, document_id)
-
-    def test_read_values_example0(self):
-        self.assert_read_values(0, expect_values0)
-
-    def test_read_values_example1(self):
-        self.assert_read_values(1, expect_values1)
-
-    def assert_read_values(self, example_index, expect_values):
-        url = self.gemini_example.url_for(file_index=example_index)
-        content = self.gemini_example.get_from_url(url)
-        document = HarvestedDocument(url=url, content=content)
-        values = document.read_values()
-        self.assert_gemini_values(values, expect_values)
-
-    def assert_gemini_values(self, values, expect_values):
-        for name in expect_values:
-            value = values[name]
-            expect = expect_values[name]
-            self.assert_gemini_value(value, expect, name)
-
-    def assert_gemini_value(self, value, expect, name):
-        try:
-            self.assert_equal(value, expect)
-        except AssertionError, inst:
-            msg = "'%s' has unexpected value: %s (expected %s)" %\
-                  (name, inst, expect)
-            raise AssertionError(msg)
-
-
-class GeminiExamples(object):
-    """Encapsulates the Gemini example files in ckan/tests/gemini2_examples."""
-
-    file_names = [
-        u'00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.xml',
-        u'My series sample.xml',
-        u'00a743bf-cca4-4c19-a8e5-e64f7edbcadd_gemini2.update.xml',
-    ]
-
-    file_names_bad = [
-        u'RSS-example.xml',
-    ]
-
-    def url_for(self, file_index=None):
-        if file_index in [None, 'index.html']:
-            name = "index.html"
-        elif file_index in ['index.updated.html']:
-            name = "index.updated.html"
-        else:
-            name = self.file_names[file_index]
-        path = os.path.join(self.folder_path(), name)
-        if not os.path.exists(path):
-            raise Exception("Gemini example not found on path: %s" % path)
-        return "file://%s" % path
-
-    # Todo: Refactor url_for() and url_for_bad().
-    def url_for_bad(self, index=None):
-        if index in [None, 'index.html']:
-            name = "index.html"
-        else:
-            name = self.file_names_bad[index]
-        path = os.path.join(self.folder_path_bad(), name)
-        if not os.path.exists(path):
-            raise Exception("Gemini bad example not found on path: %s" % path)
-        return "file://%s" % path
-
-    # Todo: Refactor folder_path() and folder_path_bad().
-    def folder_path(self):
-        from pylons import config
-        here_path = config['here']
-        here_path = self.script_path()
-        return os.path.join(here_path, 'gemini2_examples')
-
-    def folder_path_bad(self):
-        from pylons import config
-        here_path = config['here']
-        here_path = self.script_path()
-        return os.path.join(here_path, 'gemini2_examples_bad')
-
-    def script_path(self):
-        return os.path.dirname(os.path.abspath(__file__))
-
-    def get_from_url(self, url):
-        import urllib2
-        resource = urllib2.urlopen(url)
-        # This returns the raw, data
-        data = resource.read()
-        # To get it as unicode we need to decode it
-        xml = etree.fromstring(data)
-        return etree.tostring(xml, encoding=unicode, pretty_print=True)
-

Repository URL: https://bitbucket.org/okfn/ckanext-harvest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list