Exemplo n.º 1
0
def CheckForCannotCreate(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion,
                      AwaUnexpectedErrorException, AwaError.Response,
                      AwaError.CannotCreate)
Exemplo n.º 2
0
def CheckForNotDefinedWhenAddingValue(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion,
                      AwaUnexpectedErrorException, AwaError.NotDefined)
Exemplo n.º 3
0
def CheckForNotDefined(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion,
                      AwaUnexpectedErrorException, AwaError.Response,
                      AwaError.NotDefined)
Exemplo n.º 4
0
def CheckForTypeMismatchWhenAddingValue(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion,
                      AwaUnexpectedErrorException, AwaError.TypeMismatch)
Exemplo n.º 5
0
def CheckForTypeMismatch(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion,
                      AwaUnexpectedErrorException, AwaError.Response,
                      AwaError.TypeMismatch)
Exemplo n.º 6
0
def CheckForPathInvalid(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion,
                      AwaUnexpectedErrorException, AwaError.PathInvalid)
Exemplo n.º 7
0
def CheckForNullPointerException(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion,
                      AwaNullPointerException, None)
Exemplo n.º 8
0
def CheckForAlreadyDefined(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion,
                      AwaUnexpectedErrorException, AwaError.AlreadyDefined)
Exemplo n.º 9
0
def CheckForPathNotFound(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion,
                      AwaUnexpectedErrorException, AwaError.Response,
                      AwaError.PathNotFound)
Exemplo n.º 10
0
def CheckForMethodNotAllowed(testCase, assertion):
    CheckForException(testCase, CheckForSuccess, assertion, AwaUnexpectedErrorException, AwaError.Response, AwaError.LWM2MError, AwaLWM2MError.MethodNotAllowed)