本文整理汇总了Python中clientraw.ClientRaw.get_surface_pressure_trend方法的典型用法代码示例。如果您正苦于以下问题:Python ClientRaw.get_surface_pressure_trend方法的具体用法?Python ClientRaw.get_surface_pressure_trend怎么用?Python ClientRaw.get_surface_pressure_trend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类clientraw.ClientRaw
的用法示例。
在下文中一共展示了ClientRaw.get_surface_pressure_trend方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_no_field_for_surface_pressure_trend
# 需要导入模块: from clientraw import ClientRaw [as 别名]
# 或者: from clientraw.ClientRaw import get_surface_pressure_trend [as 别名]
def test_no_field_for_surface_pressure_trend(self):
testee = ClientRaw(self.__gen_empty_client_raw_str(ClientRaw.SURFACE_PRESSURE_TREND-1))
self.assertEqual(None, testee.get_surface_pressure_trend())
示例2: test_surface_pressure_trend_field_populated_steady
# 需要导入模块: from clientraw import ClientRaw [as 别名]
# 或者: from clientraw.ClientRaw import get_surface_pressure_trend [as 别名]
def test_surface_pressure_trend_field_populated_steady(self):
testee = ClientRaw(self.__gen_populated_client_raw_str(ClientRaw.SURFACE_PRESSURE_TREND, "0"))
self.assertEqual(Trend.STEADY, testee.get_surface_pressure_trend())
示例3: test_surface_pressure_trend_field_populated_with_invalid_value
# 需要导入模块: from clientraw import ClientRaw [as 别名]
# 或者: from clientraw.ClientRaw import get_surface_pressure_trend [as 别名]
def test_surface_pressure_trend_field_populated_with_invalid_value(self):
testee = ClientRaw(self.__gen_populated_client_raw_str(ClientRaw.SURFACE_PRESSURE_TREND, "blah"))
self.assertEqual(None, testee.get_surface_pressure_trend())
示例4: test_surface_pressure_trend_field_populated_falling
# 需要导入模块: from clientraw import ClientRaw [as 别名]
# 或者: from clientraw.ClientRaw import get_surface_pressure_trend [as 别名]
def test_surface_pressure_trend_field_populated_falling(self):
testee = ClientRaw(self.__gen_populated_client_raw_str(ClientRaw.SURFACE_PRESSURE_TREND, "-2.5"))
self.assertEqual(Trend.FALLING, testee.get_surface_pressure_trend())