Skip to content

Commit

Permalink
WQX web service response changed, tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Foster committed Feb 20, 2014
1 parent 9204394 commit c1e2ba0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/collectors/test_wqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ def setUp(self):
def test_wqp_sites_metadata(self):
"""
<WQX xmlns="http://qwwebservices.usgs.gov/schemas/WQX-Outbound/2_0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://qwwebservices.usgs.gov/schemas/WQX-Outbound/2_0/ http://qwwebservices.usgs.gov/schemas/WQX-Outbound/2_0/index.xsd">
<Organization>
<OrganizationDescription>
<OrganizationIdentifier>ARS</OrganizationIdentifier>
<OrganizationFormalName>Agricultural Research Service</OrganizationFormalName>
</OrganizationDescription>
</Organization>
<Organization>
<OrganizationDescription>
<OrganizationIdentifier>21IOWA</OrganizationIdentifier>
Expand Down Expand Up @@ -50,7 +56,7 @@ def test_wqp_sites_metadata(self):
self.c.filter(features=["21IOWA-10070005"])
meta, data = self.c.raw()

org = WqxOutbound(meta).organizations[0]
org = WqxOutbound(meta).organizations[1]

# OrganizationDescription
assert org.description.name == u"Iowa Dept. of Natural Resources"
Expand All @@ -76,7 +82,7 @@ def test_wqp_results_metadata(self):
meta, data = self.c.raw()

# OrganizationDescription
org = WqxOutbound(data).organizations[0]
org = WqxOutbound(data).organizations[1]
assert org.description.name == u"Iowa Dept. of Natural Resources"
assert org.description.id == u"21IOWA"

Expand Down

0 comments on commit c1e2ba0

Please sign in to comment.