def get_folders(self, **params):
        """Get list of folders in an IMAP source.

        Documentation: http://context.io/docs/2.0/accounts/sources/folders#get

        Optional Arguments:
            include_extended_counts: integer -

        Returns:
            A list of Folder objects.
        """
        all_args = ["include_extended_counts"]
        params = helpers.sanitize_params(params, all_args)

        return [
            Folder(self, obj)
            for obj in self._request_uri("folders", params=params)
        ]
 def get_folders(self):
     return [Folder(self, obj) for obj in self._request_uri("folders")]
Exemple #3
0
 def setUp(self):
     self.folder = Folder(Mock(spec=[]), {"name": "fake_folder_name"})