示例#1
0
 def test_find_pbap_port_not_found(self):
     lightblue.findservices = Mock(
         return_value=[
             ("fake address", '15', "Voice")])
     self.assertIsNone(pbap.find_pbap_port("fake"))
示例#2
0
 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"))