示例#1
0
 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"]))
示例#2
0
 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"]))