def test_get_list_base_order_with_pk(self):
        """
        REST Api: Test get list with base order using primary key
        """
        client = self.app.test_client()
        token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)

        # test string order asc
        with model1_data(self.appbuilder.session, MODEL1_DATA_SIZE):
            rv = self.auth_client_get(client, token, "api/v1/model1apiorderpk/")
            data = json.loads(rv.data.decode("utf-8"))
            self.assertEqual(
                data[API_RESULT_RES_KEY][0],
                {
                    "field_date": None,
                    "field_float": float(MODEL1_DATA_SIZE - 1),
                    "field_integer": MODEL1_DATA_SIZE - 1,
                    "field_string": "test{}".format(MODEL1_DATA_SIZE - 1),
                },
            )

        REST Api: Test get list with base order using primary key
        
tests/test_api.py