import objc
from PyObjCTools.TestSupport import TestCase, min_os_level
import MultipeerConnectivity


class TestMCAdvertiserAssistant(TestCase):
    @min_os_level("10.10")
    def testClasses(self):
        self.assertIsInstance(
            MultipeerConnectivity.MCAdvertiserAssistant, objc.objc_class
        )

    @min_os_level("10.10")
    def testProtocols(self):
        self.assertProtocolExists("MCAdvertiserAssistantDelegate")
