Exemplo n.º 1
0
 def test_validate(self):
     jData = self.__class__.data
     my_token = self.__class__.token
     exePath = self.__class__.pathExe
     test, rc = requestAPI.customAPIRequest("validate", jData, my_token,
                                            "POST", "200", exePath)
     event.append(test)
     endP.append(["validate", rc])
     self.assertTrue(test)
Exemplo n.º 2
0
    def test_persons(self):
        jData = self.__class__.data
        my_token = self.__class__.token
        exePath = self.__class__.pathExe

        test, rc = requestAPI.customAPIRequest("persons", jData, my_token,
                                               "POST", "422", exePath)
        event.append(test)
        endP.append(["persons", rc])
        self.assertTrue(test)
Exemplo n.º 3
0
    def test_retrieve_movement_detail(self):
        jData = self.__class__.data
        my_token = self.__class__.token
        exePath = self.__class__.pathExe

        test, rc = requestAPI.customAPIRequest("retrieve_movement_detail",
                                               jData, my_token, "POST", "200",
                                               exePath)
        event.append(test)
        endP.append(["retrieve_movement_detail", rc])
        self.assertTrue(test)
Exemplo n.º 4
0
    def test_serch(self, strNameEndPoint, method, expectReturnCode):
        jData = self.__class__.data
        my_token = self.__class__.token
        exePath = self.__class__.pathExe

        test, rc = requestAPI.customAPIRequest(strNameEndPoint, jData,
                                               my_token, method,
                                               expectReturnCode, exePath)
        event.append(test)
        endP.append([strNameEndPoint, rc])
        self.assertTrue(test)