def pairing():
     isTestSuccessFull = True
     if bleAdapter.isPaired() == False:
         bleAdapter.writeCharacteristic(runTest.DUT_ENCRYPT_CHAR_UUID, runTest.DUT_ENCRYPT_CHAR_UUID) #should trigger a pairing event
         isTestSuccessFull = bleAdapter.isPaired()
     else:
         isTestSuccessFull = False
     return isTestSuccessFull
    def readWriteProtectedAttributesWhileNotPaired():
        isPaired = bleAdapter.isPaired()
        if isPaired != False:
            print("readWriteProtectedCharacteristicWhileNotPaired test: Expected paired:0, got:"+str(isPaired))
            sys.stdout.flush()
            return False

        return runTest._readWriteProtectedAttributes(False)
    def readWriteSimpleConnection():
        isTestSuccessfull = runTest._readWriteChecks(runTest.DUT_OPEN_CHAR_UUID, runTest.DUT_OPEN_DESCR_UUID)

        isPaired = bleAdapter.isPaired()

        if isPaired != False:
            isTestSuccessfull = False
            print("readWriteSimpleConnection test: Expected paired:0, got:"+str(isPaired))

        sys.stdout.flush()
        return isTestSuccessfull