def test_get_send_sms(self): "Test get_send_sms" data = {"xhtml_ui": {"xhtml_send_sms_string" : "Wahoo!"}} devinfo = HandsetDetectionDeviceInformation(data) self.assertEqual(devinfo.get_send_sms(), data["xhtml_ui"]["xhtml_send_sms_string"]) data = {"xhtml_ui": {"xhtml_send_sms_string" : "none"}} devinfo = HandsetDetectionDeviceInformation(data) self.assertEqual(devinfo.get_send_sms(), None)
def test_get_click_to_call(self): "Test get_click_to_call" data = {"xhtml_ui": {"xhtml_make_phone_call_string" : "Wahoo!"}} devinfo = HandsetDetectionDeviceInformation(data) self.assertEqual(devinfo.get_click_to_call(), data["xhtml_ui"]["xhtml_make_phone_call_string"]) data = {"xhtml_ui": {"xhtml_make_phone_call_string" : "none"}} devinfo = HandsetDetectionDeviceInformation(data) self.assertEqual(devinfo.get_click_to_call(), None)
def test_get_send_sms(self): "Test get_send_sms" data = {"xhtml_ui": {"xhtml_send_sms_string": "Wahoo!"}} devinfo = HandsetDetectionDeviceInformation(data) self.assertEqual(devinfo.get_send_sms(), data["xhtml_ui"]["xhtml_send_sms_string"]) data = {"xhtml_ui": {"xhtml_send_sms_string": "none"}} devinfo = HandsetDetectionDeviceInformation(data) self.assertEqual(devinfo.get_send_sms(), None)
def test_get_click_to_call(self): "Test get_click_to_call" data = {"xhtml_ui": {"xhtml_make_phone_call_string": "Wahoo!"}} devinfo = HandsetDetectionDeviceInformation(data) self.assertEqual(devinfo.get_click_to_call(), data["xhtml_ui"]["xhtml_make_phone_call_string"]) data = {"xhtml_ui": {"xhtml_make_phone_call_string": "none"}} devinfo = HandsetDetectionDeviceInformation(data) self.assertEqual(devinfo.get_click_to_call(), None)