Example #1
0
    def setUp(self):
        # use a mock for the api calls
        self.mockapi = Mockapi('')

        # create the app object
        self.app = App(self.mockapi)

        # create the client object
        self.client_id = self.mockapi.clients_list[0]['client_id']
        self.client = Client(self.app, self.client_id)
Example #2
0
    def get_client(self, client_id=None):
        """Get a :class:`.Client` object.

        Args:
            client_id: client_id of client
                (can be omitted when creating a client)

        Returns:
            a Client object
        """
        return Client(self, client_id)