Example #1
0
 def test_kidde_radio_code(self):
     with open('{}/api_responses/v1_hub.json'.format(os.path.dirname(__file__))) as hub_file:
         response_dict = json.load(hub_file)
     hub = response_dict.get('data')[0]
     wink_hub = WinkHub(hub, self.api_interface)
     code = wink_hub.kidde_radio_code()
     self.assertEqual(code, 0)
Example #2
0
 def test_kidde_radio_code(self):
     with open('{}/api_responses/v1_hub.json'.format(
             os.path.dirname(__file__))) as hub_file:
         response_dict = json.load(hub_file)
     hub = response_dict.get('data')[0]
     wink_hub = WinkHub(hub, self.api_interface)
     code = wink_hub.kidde_radio_code()
     self.assertEqual(code, 0)