Change-Id: Ic1096b2c6a5a0c5f081d4710ac18b512cdd5b348 Former-commit-id: e5999c9ed5e32317f57c1c0276c3896c17ede363
57 lines
1.7 KiB
Python
57 lines
1.7 KiB
Python
##
|
|
# This software was developed and / or modified by Raytheon Company,
|
|
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
|
#
|
|
# U.S. EXPORT CONTROLLED TECHNICAL DATA
|
|
# This software product contains export-restricted data whose
|
|
# export/transfer/disclosure is restricted by U.S. law. Dissemination
|
|
# to non-U.S. persons whether in the United States or abroad requires
|
|
# an export license or other authorization.
|
|
#
|
|
# Contractor Name: Raytheon Company
|
|
# Contractor Address: 6825 Pine Street, Suite 340
|
|
# Mail Stop B8
|
|
# Omaha, NE 68106
|
|
# 402.291.0100
|
|
#
|
|
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
|
# further licensing information.
|
|
##
|
|
|
|
from __future__ import print_function
|
|
from ufpy.dataaccess import DataAccessLayer as DAL
|
|
|
|
import baseBufrMosTestCase
|
|
import dafTestsArgsUtil
|
|
import sys
|
|
import unittest
|
|
|
|
class BufrMosMrfTestCase(baseBufrMosTestCase.BufrMosTestCase):
|
|
"""
|
|
Tests that bufrmosMRF data can be retrieved through the DAF, simply ensuring
|
|
that no unexpected exceptions are thrown while retrieving it and that the
|
|
returned data is not None.
|
|
"""
|
|
|
|
datatype = "bufrmosMRF"
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
print("STARTING BUFRMOSMRF TESTS\n\n")
|
|
|
|
# Most tests inherited from superclass
|
|
|
|
def testGeometryData(self):
|
|
req = DAL.newDataRequest(self.datatype)
|
|
req.setLocationNames("KOMA")
|
|
req.setParameters("forecastHr", "maxTempDay")
|
|
|
|
self.runGeometryDataTest(req)
|
|
|
|
@classmethod
|
|
def tearDownClass(cls):
|
|
print("BUFRMOSMRF TESTS COMPLETE\n\n\n")
|
|
|
|
if __name__ == '__main__':
|
|
dafTestsArgsUtil.parseAndHandleArgs()
|
|
unittest.main(argv=sys.argv[:1])
|