def test_find_pbap_port_not_found(self): lightblue.findservices = Mock( return_value=[ ("fake address", '15', "Voice")]) self.assertIsNone(pbap.find_pbap_port("fake"))
def test_find_pbap_port_found(self): lightblue.findservices = Mock( return_value=[ ("fake address", '15', "Phonebook Access")]) self.assertEqual('15', pbap.find_pbap_port("fake"))