def test_have_pbap_service_not_found(self): lightblue.findservices = Mock( return_value=[ ("fake address", '15', "Voice")]) self.assertFalse(pbap.have_pbap_service(["fake", "15", "SK17i"]))
def test_have_pbap_service_found(self): lightblue.findservices = Mock( return_value=[ ("fake address", '15', "Phonebook Access")]) self.assertTrue(pbap.have_pbap_service(["fake", "15", "SK17i"]))