we don't force lowercase on datatype names anymore

This commit is contained in:
Michael James 2018-10-15 07:50:22 -06:00
parent 912c713f17
commit 88cab9b135
2 changed files with 7 additions and 5 deletions

View file

@ -74,7 +74,7 @@ class DafTestCase(unittest.TestCase):
def testDatatypeIsSupported(self):
allSupported = DAL.getSupportedDatatypes()
self.assertIn(self.datatype.lower(), allSupported)
self.assertIn(self.datatype, allSupported)
def testGetRequiredIdentifiers(self):
req = DAL.newDataRequest(self.datatype)

View file

@ -33,24 +33,26 @@ class ModelSoundingTestCase(baseDafTestCase.DafTestCase):
datatype = "modelsounding"
reporttype = "ETA"
def testGetAvailableParameters(self):
req = DAL.newDataRequest(self.datatype)
self.runParametersTest(req)
def testGetAvailableLocations(self):
req = DAL.newDataRequest(self.datatype)
req.addIdentifier("reportType", "ETA")
req.addIdentifier("reportType", self.reporttype)
self.runLocationsTest(req)
def testGetAvailableTimes(self):
req = DAL.newDataRequest(self.datatype)
req.addIdentifier("reportType", "ETA")
req.addIdentifier("reportType", self.reporttype)
req.setLocationNames(params.OBS_STATION)
self.runTimesTest(req)
def testGetGeometryData(self):
req = DAL.newDataRequest(self.datatype)
req.addIdentifier("reportType", "ETA")
req.addIdentifier("reportType", self.reporttype)
req.setLocationNames(params.OBS_STATION)
req.setParameters("temperature", "pressure", "specHum", "sfcPress", "temp2", "q2")
print("Testing getGeometryData()")
@ -80,7 +82,7 @@ class ModelSoundingTestCase(baseDafTestCase.DafTestCase):
def testGetGeometryDataWithEnvelope(self):
req = DAL.newDataRequest(self.datatype)
req.addIdentifier("reportType", "ETA")
req.addIdentifier("reportType", self.reporttype)
req.setEnvelope(params.ENVELOPE)
req.setParameters("temperature", "pressure", "specHum", "sfcPress", "temp2", "q2")
print("Testing getGeometryData()")