SYMBOL INDEX (1203 symbols across 50 files) FILE: src/cloudant/_2to3.py function iteritems_ (line 46) | def iteritems_(adict): function next_ (line 55) | def next_(itr): function iteritems_ (line 71) | def iteritems_(adict): function next_ (line 80) | def next_(itr): function bytes_ (line 90) | def bytes_(astr): function unicode_ (line 100) | def unicode_(astr): FILE: src/cloudant/__init__.py function cloudant (line 31) | def cloudant(user, passwd, **kwargs): function cloudant_iam (line 70) | def cloudant_iam(account_name, api_key, **kwargs): function cloudant_bluemix (line 99) | def cloudant_bluemix(vcap_services, instance_name=None, service_name=Non... function couchdb (line 169) | def couchdb(user, passwd, **kwargs): function couchdb_admin_party (line 199) | def couchdb_admin_party(**kwargs): FILE: src/cloudant/_client_session.py class ClientSession (line 29) | class ClientSession(Session): method __init__ (line 34) | def __init__(self, username=None, password=None, session_url=None, **k... method base64_user_pass (line 44) | def base64_user_pass(self): method request (line 61) | def request(self, method, url, **kwargs): method info (line 70) | def info(self): method set_credentials (line 81) | def set_credentials(self, username, password): method login (line 94) | def login(self): method logout (line 101) | def logout(self): class BasicSession (line 109) | class BasicSession(ClientSession): method __init__ (line 114) | def __init__(self, username, password, server_url, **kwargs): method request (line 121) | def request(self, method, url, **kwargs): class CookieSession (line 134) | class CookieSession(ClientSession): method __init__ (line 139) | def __init__(self, username, password, server_url, **kwargs): method login (line 146) | def login(self): method logout (line 157) | def logout(self): method request (line 164) | def request(self, method, url, **kwargs): class IAMSession (line 187) | class IAMSession(ClientSession): method __init__ (line 192) | def __init__(self, api_key, server_url, client_id=None, client_secret=... method get_api_key (line 206) | def get_api_key(self): method login (line 214) | def login(self): method logout (line 231) | def logout(self): method request (line 237) | def request(self, method, url, **kwargs): method set_credentials (line 265) | def set_credentials(self, username, api_key): method _get_access_token (line 275) | def _get_access_token(self): FILE: src/cloudant/_common_util.py function feed_arg_types (line 155) | def feed_arg_types(feed_type): function python_to_couch (line 165) | def python_to_couch(options, encoder=None): function py_to_couch_validate (line 186) | def py_to_couch_validate(key, val): function _py_to_couch_translate (line 208) | def _py_to_couch_translate(key, val, encoder=None): function type_or_none (line 225) | def type_or_none(typerefs, value): function codify (line 232) | def codify(code_or_str): function get_docs (line 242) | def get_docs(r_session, url, encoder=None, headers=None, **params): function append_response_error_content (line 272) | def append_response_error_content(response, **kwargs): function response_to_json_dict (line 293) | def response_to_json_dict(response, **kwargs): function assert_document_type_id (line 306) | def assert_document_type_id(docid): function assert_attachment_name (line 323) | def assert_attachment_name(attname): class _Code (line 333) | class _Code(str): method __new__ (line 339) | def __new__(cls, code): class CloudFoundryService (line 345) | class CloudFoundryService(object): method __init__ (line 348) | def __init__(self, vcap_services, instance_name=None, service_name=None): method host (line 389) | def host(self): method name (line 394) | def name(self): method password (line 399) | def password(self): method port (line 404) | def port(self): method url (line 409) | def url(self): method username (line 414) | def username(self): method iam_api_key (line 419) | def iam_api_key(self): FILE: src/cloudant/adapters.py class Replay429Adapter (line 23) | class Replay429Adapter(HTTPAdapter): method __init__ (line 35) | def __init__(self, retries=3, initialBackoff=0.25): FILE: src/cloudant/client.py class CouchDB (line 42) | class CouchDB(dict): method __init__ (line 88) | def __init__(self, user, auth_token, admin_party=False, **kwargs): method is_iam_authenticated (line 125) | def is_iam_authenticated(self): method features (line 133) | def features(self): method connect (line 145) | def connect(self): method disconnect (line 196) | def disconnect(self): method session (line 206) | def session(self): method session_cookie (line 215) | def session_cookie(self): method session_login (line 223) | def session_login(self, user=None, passwd=None): method change_credentials (line 233) | def change_credentials(self, user=None, auth_token=None): method session_logout (line 243) | def session_logout(self): method basic_auth_str (line 250) | def basic_auth_str(self): method all_dbs (line 259) | def all_dbs(self): method create_database (line 270) | def create_database(self, dbname, partitioned=False, **kwargs): method delete_database (line 297) | def delete_database(self, dbname): method db_updates (line 311) | def db_updates(self, raw_data=False, **kwargs): method metadata (line 352) | def metadata(self): method keys (line 362) | def keys(self, remote=False): method __getitem__ (line 378) | def __getitem__(self, key): method __delitem__ (line 406) | def __delitem__(self, key, remote=False): method get (line 422) | def get(self, key, default=None, remote=False): method __setitem__ (line 446) | def __setitem__(self, key, value, remote=False): class Cloudant (line 471) | class Cloudant(CouchDB): method __init__ (line 499) | def __init__(self, cloudant_user, auth_token, **kwargs): method db_updates (line 514) | def db_updates(self, raw_data=False, **kwargs): method infinite_db_updates (line 568) | def infinite_db_updates(self, **kwargs): method _usage_endpoint (line 608) | def _usage_endpoint(self, endpoint, year=None, month=None): method bill (line 639) | def bill(self, year=None, month=None): method volume_usage (line 655) | def volume_usage(self, year=None, month=None): method requests_usage (line 673) | def requests_usage(self, year=None, month=None): method shared_databases (line 691) | def shared_databases(self): method generate_api_key (line 705) | def generate_api_key(self): method cors_configuration (line 716) | def cors_configuration(self): method disable_cors (line 729) | def disable_cors(self): method cors_origins (line 742) | def cors_origins(self): method update_cors_configuration (line 752) | def update_cors_configuration( method _write_cors_configuration (line 803) | def _write_cors_configuration(self, config): method bluemix (line 825) | def bluemix(cls, vcap_services, instance_name=None, service_name=None,... method iam (line 866) | def iam(cls, account_name, api_key, **kwargs): FILE: src/cloudant/database.py class CouchDatabase (line 42) | class CouchDatabase(dict): method __init__ (line 56) | def __init__(self, client, database_name, fetch_limit=100, method r_session (line 67) | def r_session(self): method admin_party (line 76) | def admin_party(self): method database_url (line 86) | def database_url(self): method creds (line 96) | def creds(self): method database_partition_url (line 112) | def database_partition_url(self, partition_key): method exists (line 124) | def exists(self): method metadata (line 136) | def metadata(self): method partition_metadata (line 146) | def partition_metadata(self, partition_key): method doc_count (line 158) | def doc_count(self): method create_document (line 166) | def create_document(self, data, throw_on_exists=False): method new_document (line 201) | def new_document(self): method design_documents (line 214) | def design_documents(self): method list_design_documents (line 228) | def list_design_documents(self): method get_design_document (line 242) | def get_design_document(self, ddoc_id): method get_security_document (line 262) | def get_security_document(self): method get_partitioned_view_result (line 275) | def get_partitioned_view_result(self, partition_key, ddoc_id, view_name, method get_view_result (line 302) | def get_view_result(self, ddoc_id, view_name, raw_result=False, **kwar... method _get_view_result (line 400) | def _get_view_result(view, raw_result, **kwargs): method create (line 409) | def create(self, throw_on_exists=False): method delete (line 434) | def delete(self): method all_docs (line 441) | def all_docs(self, **kwargs): method partitioned_all_docs (line 474) | def partitioned_all_docs(self, partition_key, **kwargs): method custom_result (line 498) | def custom_result(self, **options): method keys (line 536) | def keys(self, remote=False): method changes (line 555) | def changes(self, raw_data=False, **kwargs): method infinite_changes (line 622) | def infinite_changes(self, **kwargs): method __getitem__ (line 675) | def __getitem__(self, key): method get (line 709) | def get(self, key, remote=False): method __contains__ (line 727) | def __contains__(self, key): method __iter__ (line 753) | def __iter__(self, remote=True): method bulk_docs (line 807) | def bulk_docs(self, docs): method missing_revisions (line 830) | def missing_revisions(self, doc_id, *revisions): method revisions_diff (line 859) | def revisions_diff(self, doc_id, *revisions): method get_revision_limit (line 883) | def get_revision_limit(self): method set_revision_limit (line 901) | def set_revision_limit(self, limit): method view_cleanup (line 918) | def view_cleanup(self): method get_list_function_result (line 934) | def get_list_function_result(self, ddoc_id, list_name, view_name, **kw... method get_show_function_result (line 977) | def get_show_function_result(self, ddoc_id, show_name, doc_id): method update_handler_result (line 1014) | def update_handler_result(self, ddoc_id, handler_name, doc_id=None, da... method get_query_indexes (line 1066) | def get_query_indexes(self, raw_result=False): method create_query_index (line 1116) | def create_query_index( method delete_query_index (line 1169) | def delete_query_index(self, design_document_id, index_type, index_name): method get_partitioned_query_result (line 1188) | def get_partitioned_query_result(self, partition_key, selector, fields... method get_query_result (line 1218) | def get_query_result(self, selector, fields=None, raw_result=False, method _get_query_result (line 1293) | def _get_query_result(query, raw_result, **kwargs): class CloudantDatabase (line 1303) | class CloudantDatabase(CouchDatabase): method __init__ (line 1317) | def __init__(self, client, database_name, fetch_limit=100, method security_document (line 1326) | def security_document(self): method security_url (line 1337) | def security_url(self): method share_database (line 1347) | def share_database(self, username, roles=None): method unshare_database (line 1395) | def unshare_database(self, username): method shards (line 1420) | def shards(self): method get_partitioned_search_result (line 1432) | def get_partitioned_search_result(self, partition_key, ddoc_id, index_... method get_search_result (line 1462) | def get_search_result(self, ddoc_id, index_name, **query_params): method _get_search_result (line 1568) | def _get_search_result(self, query_url, **query_params): FILE: src/cloudant/design_document.py class DesignDocument (line 25) | class DesignDocument(Document): method __init__ (line 47) | def __init__(self, database, document_id=None, partitioned=False): method validate_doc_update (line 64) | def validate_doc_update(self): method filters (line 90) | def filters(self): method updates (line 127) | def updates(self): method st_indexes (line 165) | def st_indexes(self): method lists (line 205) | def lists(self): method shows (line 215) | def shows(self): method rewrites (line 226) | def rewrites(self): method views (line 264) | def views(self): method indexes (line 274) | def indexes(self): method document_partition_url (line 284) | def document_partition_url(self, partition_key): method add_view (line 298) | def add_view(self, view_name, map_func, reduce_func=None, **kwargs): method add_search_index (line 318) | def add_search_index(self, index_name, search_func, analyzer=None): method add_list_function (line 336) | def add_list_function(self, list_name, list_func): method add_show_function (line 349) | def add_show_function(self, show_name, show_func): method update_view (line 362) | def update_view(self, view_name, map_func, reduce_func=None, **kwargs): method update_search_index (line 385) | def update_search_index(self, index_name, search_func, analyzer=None): method update_list_function (line 404) | def update_list_function(self, list_name, list_func): method update_show_function (line 417) | def update_show_function(self, show_name, show_func): method delete_view (line 430) | def delete_view(self, view_name): method delete_index (line 448) | def delete_index(self, index_name): method delete_list_function (line 461) | def delete_list_function(self, list_name): method delete_show_function (line 470) | def delete_show_function(self, show_name): method fetch (line 482) | def fetch(self): method save (line 515) | def save(self): method __setitem__ (line 556) | def __setitem__(self, key, value): method iterviews (line 569) | def iterviews(self): method iterindexes (line 586) | def iterindexes(self): method iterlists (line 604) | def iterlists(self): method itershows (line 615) | def itershows(self): method list_views (line 626) | def list_views(self): method list_indexes (line 635) | def list_indexes(self): method list_list_functions (line 644) | def list_list_functions(self): method list_show_functions (line 653) | def list_show_functions(self): method get_view (line 662) | def get_view(self, view_name): method get_index (line 673) | def get_index(self, index_name): method get_list_function (line 684) | def get_list_function(self, list_name): method get_show_function (line 695) | def get_show_function(self, show_name): method info (line 706) | def info(self): method search_info (line 717) | def search_info(self, search_index): method search_disk_size (line 729) | def search_disk_size(self, search_index): FILE: src/cloudant/document.py class Document (line 27) | class Document(dict): method __init__ (line 60) | def __init__(self, database, document_id=None, **kwargs): method r_session (line 72) | def r_session(self): method document_url (line 81) | def document_url(self): method exists (line 115) | def exists(self): method json (line 133) | def json(self): method create (line 143) | def create(self): method fetch (line 166) | def fetch(self): method save (line 182) | def save(self): method list_field_append (line 209) | def list_field_append(doc, field, value): method list_field_remove (line 227) | def list_field_remove(doc, field, value): method field_set (line 241) | def field_set(doc, field, value): method _update_field (line 256) | def _update_field(self, action, field, value, max_tries, tries=0): method update_field (line 277) | def update_field(self, action, field, value, max_tries=10): method delete (line 314) | def delete(self): method __enter__ (line 336) | def __enter__(self): method __exit__ (line 356) | def __exit__(self, exc_type, exc_value, traceback): method get_attachment (line 364) | def get_attachment( method delete_attachment (line 423) | def delete_attachment(self, attachment, headers=None): method put_attachment (line 461) | def put_attachment(self, attachment, content_type, data, headers=None): FILE: src/cloudant/error.py class CloudantException (line 31) | class CloudantException(Exception): method __init__ (line 42) | def __init__(self, msg, code=None): class CloudantArgumentError (line 47) | class CloudantArgumentError(CloudantException): method __init__ (line 59) | def __init__(self, code=100, *args): class ResultException (line 67) | class ResultException(CloudantException): method __init__ (line 77) | def __init__(self, code=100, *args): class CloudantClientException (line 86) | class CloudantClientException(CloudantException): method __init__ (line 93) | def __init__(self, code=100, *args): class CloudantDatabaseException (line 101) | class CloudantDatabaseException(CloudantException): method __init__ (line 108) | def __init__(self, code=100, *args): class CloudantDesignDocumentException (line 122) | class CloudantDesignDocumentException(CloudantException): method __init__ (line 129) | def __init__(self, code=100, *args): class CloudantDocumentException (line 137) | class CloudantDocumentException(CloudantException): method __init__ (line 144) | def __init__(self, code=100, *args): class CloudantFeedException (line 152) | class CloudantFeedException(CloudantException): method __init__ (line 159) | def __init__(self, code=100, *args): class CloudantIndexException (line 167) | class CloudantIndexException(CloudantException): method __init__ (line 174) | def __init__(self, code=100, *args): class CloudantReplicatorException (line 182) | class CloudantReplicatorException(CloudantException): method __init__ (line 189) | def __init__(self, code=100, *args): class CloudantViewException (line 197) | class CloudantViewException(CloudantException): method __init__ (line 204) | def __init__(self, code=100, *args): FILE: src/cloudant/feed.py class Feed (line 26) | class Feed(object): method __init__ (line 44) | def __init__(self, source, raw_data=False, **options): method last_seq (line 67) | def last_seq(self): method stop (line 76) | def stop(self): method _start (line 82) | def _start(self): method _translate (line 91) | def _translate(self, options): method _validate (line 109) | def _validate(self, key, val, arg_types): method __iter__ (line 137) | def __iter__(self): method __next__ (line 143) | def __next__(self): method next (line 149) | def next(self): method _process_data (line 166) | def _process_data(self, line): class InfiniteFeed (line 200) | class InfiniteFeed(Feed): method __init__ (line 226) | def __init__(self, source, **options): method _validate (line 231) | def _validate(self, key, val, arg_types): method next (line 240) | def next(self): FILE: src/cloudant/index.py class Index (line 29) | class Index(object): method __init__ (line 50) | def __init__(self, database, design_document_id=None, name=None, parti... method index_url (line 60) | def index_url(self): method design_document_id (line 69) | def design_document_id(self): method name (line 78) | def name(self): method type (line 87) | def type(self): method definition (line 96) | def definition(self): method partitioned (line 107) | def partitioned(self): method as_a_dict (line 117) | def as_a_dict(self): method create (line 136) | def create(self): method _def_check (line 170) | def _def_check(self): method delete (line 177) | def delete(self): class TextIndex (line 192) | class TextIndex(Index): method __init__ (line 210) | def __init__(self, database, design_document_id=None, name=None, **kwa... method _def_check (line 219) | def _def_check(self): class SpecialIndex (line 231) | class SpecialIndex(Index): method __init__ (line 239) | def __init__( method create (line 254) | def create(self): method delete (line 261) | def delete(self): FILE: src/cloudant/query.py class Query (line 28) | class Query(dict): method __init__ (line 93) | def __init__(self, database, **kwargs): method url (line 106) | def url(self): method __call__ (line 120) | def __call__(self, **kwargs): method custom_result (line 188) | def custom_result(self, **options): FILE: src/cloudant/replicator.py class Replicator (line 27) | class Replicator(object): method __init__ (line 38) | def __init__(self, client): method create_replication (line 46) | def create_replication(self, source_db=None, target_db=None, method list_replications (line 113) | def list_replications(self): method replication_state (line 129) | def replication_state(self, repl_id): method follow_replication (line 155) | def follow_replication(self, repl_id): method stop_replication (line 214) | def stop_replication(self, repl_id): FILE: src/cloudant/result.py class ResultByKey (line 24) | class ResultByKey(object): method __init__ (line 41) | def __init__(self, value): method __call__ (line 44) | def __call__(self): class Result (line 47) | class Result(object): method __init__ (line 174) | def __init__(self, method_ref, **options): method __getitem__ (line 179) | def __getitem__(self, arg): method _handle_result_by_index (line 236) | def _handle_result_by_index(self, idx): method _handle_result_by_key (line 252) | def _handle_result_by_key(self, key): method _handle_result_by_idx_slice (line 261) | def _handle_result_by_idx_slice(self, idx_slice): method _handle_result_by_key_slice (line 300) | def _handle_result_by_key_slice(self, key_slice): method __iter__ (line 329) | def __iter__(self): method _real_page_size (line 369) | def _real_page_size(self): method _iterator (line 376) | def _iterator(self, response): method _parse_data (line 412) | def _parse_data(self, data): method all (line 418) | def all(self): class QueryResult (line 430) | class QueryResult(Result): method __init__ (line 511) | def __init__(self, query, **options): method __getitem__ (line 519) | def __getitem__(self, arg): method _parse_data (line 549) | def _parse_data(self, data): method _real_page_size (line 557) | def _real_page_size(self): method _iterator (line 563) | def _iterator(self, response): FILE: src/cloudant/scheduler.py class Scheduler (line 21) | class Scheduler(object): method __init__ (line 29) | def __init__(self, client): method list_docs (line 34) | def list_docs(self, limit=None, skip=None): method get_doc (line 54) | def get_doc(self, doc_id): method list_jobs (line 63) | def list_jobs(self, limit=None, skip=None): FILE: src/cloudant/security_document.py class SecurityDocument (line 23) | class SecurityDocument(dict): method __init__ (line 55) | def __init__(self, database): method document_url (line 64) | def document_url(self): method r_session (line 77) | def r_session(self): method json (line 85) | def json(self): method fetch (line 95) | def fetch(self): method save (line 107) | def save(self): method __enter__ (line 119) | def __enter__(self): method __exit__ (line 128) | def __exit__(self, *args): FILE: src/cloudant/view.py class View (line 25) | class View(dict): method __init__ (line 93) | def __init__( method map (line 115) | def map(self): method map (line 134) | def map(self, js_func): method reduce (line 141) | def reduce(self): method reduce (line 161) | def reduce(self, js_func): method url (line 168) | def url(self): method __call__ (line 186) | def __call__(self, **kwargs): method custom_result (line 243) | def custom_result(self, **options): class QueryIndexView (line 302) | class QueryIndexView(View): method __init__ (line 311) | def __init__(self, ddoc, view_name, map_fields, reduce_func, **kwargs): method map (line 328) | def map(self): method map (line 339) | def map(self, map_func): method reduce (line 349) | def reduce(self): method reduce (line 361) | def reduce(self, reduce_func): method __call__ (line 370) | def __call__(self, **kwargs): method custom_result (line 378) | def custom_result(self, **options): FILE: tests/__init__.py function unicode_ (line 27) | def unicode_(s): function iteritems_ (line 30) | def iteritems_(d): function bytes_ (line 33) | def bytes_(astr): function str_ (line 36) | def str_(astr): FILE: tests/credentials.py function read_dot_couch (line 25) | def read_dot_couch( function read_dot_cloudant (line 48) | def read_dot_cloudant( function _read_dot_file (line 72) | def _read_dot_file(filename, section, username, password): FILE: tests/integration/changes_test.py function setup_logging (line 32) | def setup_logging(): class ChangesTest (line 44) | class ChangesTest(unittest.TestCase): method setUp (line 52) | def setUp(self): method tearDown (line 56) | def tearDown(self): method test_changes (line 61) | def test_changes(self): method test_changes_include_docs (line 99) | def test_changes_include_docs(self): FILE: tests/integration/document_test.py class DocumentTest (line 31) | class DocumentTest(unittest.TestCase): method setUp (line 37) | def setUp(self): method tearDown (line 43) | def tearDown(self): method test_delete (line 47) | def test_delete(self): FILE: tests/integration/end_to_end_example_test.py class E2ECouchTest (line 27) | class E2ECouchTest(unittest.TestCase): method setUp (line 31) | def setUp(self): method test_end_to_end (line 35) | def test_end_to_end(self): class E2ECloudantTest (line 86) | class E2ECloudantTest(unittest.TestCase): method setUp (line 92) | def setUp(self): method test_end_to_end (line 96) | def test_end_to_end(self): FILE: tests/integration/iter_test.py class IterTest (line 30) | class IterTest(unittest.TestCase): method setUp (line 37) | def setUp(self): method tearDown (line 41) | def tearDown(self): method test_database_with_two_docs (line 46) | def test_database_with_two_docs(self): method test_database_with_many_docs (line 77) | def test_database_with_many_docs(self): FILE: tests/integration/replicator_test.py function setup_logging (line 34) | def setup_logging(): class ReplicatorTest (line 46) | class ReplicatorTest(unittest.TestCase): method setUp (line 51) | def setUp(self): method tearDown (line 56) | def tearDown(self): method test_init (line 67) | def test_init(self): method test_create_replication (line 78) | def test_create_replication(self): method test_follow_replication (line 148) | def test_follow_replication(self): method test_replication_state (line 193) | def test_replication_state(self): method test_list_replications (line 252) | def test_list_replications(self): FILE: tests/unit/adapter_tests.py class AdapterTests (line 21) | class AdapterTests(UnitTestDbBase): method test_new_Replay429Adapter (line 26) | def test_new_Replay429Adapter(self): method test_retries_arg_Replay429Adapter (line 36) | def test_retries_arg_Replay429Adapter(self): method test_backoff_arg_Replay429Adapter (line 48) | def test_backoff_arg_Replay429Adapter(self): method test_args_Replay429Adapter (line 58) | def test_args_Replay429Adapter(self): FILE: tests/unit/auth_renewal_tests.py class AuthRenewalTests (line 34) | class AuthRenewalTests(UnitTestDbBase): method setUp (line 39) | def setUp(self): method tearDown (line 45) | def tearDown(self): method test_client_db_doc_stack_success (line 52) | def test_client_db_doc_stack_success(self): method test_client_db_doc_stack_failure (line 117) | def test_client_db_doc_stack_failure(self): FILE: tests/unit/changes_tests.py class ChangesTests (line 36) | class ChangesTests(UnitTestDbBase): method setUp (line 41) | def setUp(self): method tearDown (line 48) | def tearDown(self): method test_constructor_changes (line 55) | def test_constructor_changes(self): method test_get_last_seq (line 66) | def test_get_last_seq(self): method test_stop_iteration (line 75) | def test_stop_iteration(self): method test_get_raw_content (line 94) | def test_get_raw_content(self): method test_get_normal_feed_default (line 119) | def test_get_normal_feed_default(self): method test_get_normal_feed_explicit (line 133) | def test_get_normal_feed_explicit(self): method test_get_continuous_feed (line 147) | def test_get_continuous_feed(self): method test_get_longpoll_feed (line 167) | def test_get_longpoll_feed(self): method test_get_feed_with_heartbeat (line 182) | def test_get_feed_with_heartbeat(self): method test_get_raw_feed_with_heartbeat (line 203) | def test_get_raw_feed_with_heartbeat(self): method test_get_feed_descending (line 225) | def test_get_feed_descending(self): method test_get_feed_include_docs (line 252) | def test_get_feed_include_docs(self): method test_get_feed_using_style_main_only (line 266) | def test_get_feed_using_style_main_only(self): method test_get_feed_using_style_all_docs (line 288) | def test_get_feed_using_style_all_docs(self): method test_get_feed_using_since (line 309) | def test_get_feed_using_since(self): method test_get_feed_using_since_now (line 327) | def test_get_feed_using_since_now(self): method test_get_feed_using_since_zero (line 352) | def test_get_feed_using_since_zero(self): method test_get_feed_using_timeout (line 366) | def test_get_feed_using_timeout(self): method test_get_feed_using_limit (line 384) | def test_get_feed_using_limit(self): method test_get_feed_using_filter (line 400) | def test_get_feed_using_filter(self): method test_get_feed_using_conflicts_true (line 419) | def test_get_feed_using_conflicts_true(self): method test_get_feed_using_conflicts_false (line 436) | def test_get_feed_using_conflicts_false(self): method test_get_feed_using_doc_ids (line 451) | def test_get_feed_using_doc_ids(self): method test_get_feed_with_custom_filter_query_params (line 466) | def test_get_feed_with_custom_filter_query_params(self): method test_invalid_argument_type (line 481) | def test_invalid_argument_type(self): method test_invalid_non_positive_integer_argument (line 492) | def test_invalid_non_positive_integer_argument(self): method test_invalid_feed_value (line 503) | def test_invalid_feed_value(self): method test_invalid_style_value (line 514) | def test_invalid_style_value(self): FILE: tests/unit/client_tests.py class CloudantClientExceptionTests (line 48) | class CloudantClientExceptionTests(unittest.TestCase): method test_raise_without_code (line 53) | def test_raise_without_code(self): method test_raise_using_invalid_code (line 61) | def test_raise_using_invalid_code(self): method test_raise_without_args (line 69) | def test_raise_without_args(self): method test_raise_with_proper_code_and_args (line 78) | def test_raise_with_proper_code_and_args(self): class ClientTests (line 86) | class ClientTests(UnitTestDbBase): method test_couchdb_context_helper (line 96) | def test_couchdb_context_helper(self): method test_couchdb_admin_party_context_helper (line 112) | def test_couchdb_admin_party_context_helper(self): method test_constructor_with_url (line 123) | def test_constructor_with_url(self): method test_constructor_with_creds_removed_from_url (line 134) | def test_constructor_with_creds_removed_from_url(self): method test_connect (line 148) | def test_connect(self): method test_auto_connect (line 159) | def test_auto_connect(self): method test_multiple_connect (line 170) | def test_multiple_connect(self): method test_auto_renew_enabled (line 185) | def test_auto_renew_enabled(self): method test_auto_renew_enabled_with_auto_connect (line 200) | def test_auto_renew_enabled_with_auto_connect(self): method test_session (line 215) | def test_session(self): method test_session_cookie (line 231) | def test_session_cookie(self): method test_session_basic (line 246) | def test_session_basic(self, m_req): method test_session_basic_with_no_credentials (line 272) | def test_session_basic_with_no_credentials(self, m_req): method test_change_credentials_basic (line 297) | def test_change_credentials_basic(self, m_req): method test_basic_auth_str (line 339) | def test_basic_auth_str(self): method test_all_dbs (line 358) | def test_all_dbs(self): method test_create_delete_database (line 373) | def test_create_delete_database(self): method test_create_existing_database (line 389) | def test_create_existing_database(self): method test_create_invalid_database_name (line 403) | def test_create_invalid_database_name(self): method test_create_with_server_error (line 417) | def test_create_with_server_error(self, m_req): method test_delete_non_existing_database (line 454) | def test_delete_non_existing_database(self): method test_keys (line 468) | def test_keys(self): method test_get_non_existing_db_via_getitem (line 489) | def test_get_non_existing_db_via_getitem(self): method test_get_db_via_getitem (line 502) | def test_get_db_via_getitem(self): method test_delete_cached_db_object_via_delitem (line 517) | def test_delete_cached_db_object_via_delitem(self): method test_delete_remote_db_via_delitem (line 537) | def test_delete_remote_db_via_delitem(self): method test_get_cached_db_object_via_get (line 558) | def test_get_cached_db_object_via_get(self): method test_get_remote_db_via_get (line 576) | def test_get_remote_db_via_get(self): method test_set_non_db_value_via_setitem (line 596) | def test_set_non_db_value_via_setitem(self): method test_local_set_db_value_via_setitem (line 611) | def test_local_set_db_value_via_setitem(self): method test_create_db_via_setitem (line 625) | def test_create_db_via_setitem(self): method test_db_updates_feed_call (line 639) | def test_db_updates_feed_call(self): class CloudantClientTests (line 656) | class CloudantClientTests(UnitTestDbBase): method test_constructor_with_creds_removed_from_url (line 661) | def test_constructor_with_creds_removed_from_url(self): method test_cloudant_session_login (line 675) | def test_cloudant_session_login(self): method test_cloudant_session_login_with_new_credentials (line 688) | def test_cloudant_session_login_with_new_credentials(self): method test_cloudant_context_helper (line 701) | def test_cloudant_context_helper(self): method test_cloudant_bluemix_context_helper_with_legacy_creds (line 713) | def test_cloudant_bluemix_context_helper_with_legacy_creds(self): method test_cloudant_bluemix_context_helper_with_iam (line 739) | def test_cloudant_bluemix_context_helper_with_iam(self): method test_cloudant_bluemix_context_helper_raise_error_for_missing_iam_and_creds (line 762) | def test_cloudant_bluemix_context_helper_raise_error_for_missing_iam_a... method test_cloudant_bluemix_dedicated_context_helper (line 788) | def test_cloudant_bluemix_dedicated_context_helper(self): method test_constructor_with_account (line 816) | def test_constructor_with_account(self): method test_bluemix_constructor_with_legacy_creds (line 829) | def test_bluemix_constructor_with_legacy_creds(self): method test_bluemix_constructor_with_iam (line 864) | def test_bluemix_constructor_with_iam(self): method test_bluemix_constructor_specify_instance_name (line 895) | def test_bluemix_constructor_specify_instance_name(self): method test_bluemix_constructor_with_multiple_services (line 928) | def test_bluemix_constructor_with_multiple_services(self): method test_connect_headers (line 971) | def test_connect_headers(self): method test_connect_timeout (line 996) | def test_connect_timeout(self): method test_db_updates_infinite_feed_call (line 1005) | def test_db_updates_infinite_feed_call(self): method test_billing_data (line 1023) | def test_billing_data(self): method test_set_year_without_month_for_billing_data (line 1051) | def test_set_year_without_month_for_billing_data(self): method test_set_month_without_year_for_billing_data (line 1067) | def test_set_month_without_year_for_billing_data(self): method test_set_invalid_type_year_for_billing_data (line 1083) | def test_set_invalid_type_year_for_billing_data(self): method test_set_year_with_invalid_month_for_billing_data (line 1100) | def test_set_year_with_invalid_month_for_billing_data(self): method test_volume_usage_data (line 1118) | def test_volume_usage_data(self): method test_set_year_without_month_for_volume_usage_data (line 1143) | def test_set_year_without_month_for_volume_usage_data(self): method test_set_month_without_year_for_volume_usage_data (line 1159) | def test_set_month_without_year_for_volume_usage_data(self): method test_set_invalid_type_year_for_volume_usage_data (line 1175) | def test_set_invalid_type_year_for_volume_usage_data(self): method test_set_year_with_invalid_month_for_volume_usage_data (line 1192) | def test_set_year_with_invalid_month_for_volume_usage_data(self): method test_requests_usage_data (line 1210) | def test_requests_usage_data(self): method test_set_year_without_month_for_requests_usage_data (line 1235) | def test_set_year_without_month_for_requests_usage_data(self): method test_set_month_without_year_for_requests_usage_data (line 1251) | def test_set_month_without_year_for_requests_usage_data(self): method test_set_invalid_type_year_for_requests_usage_data (line 1267) | def test_set_invalid_type_year_for_requests_usage_data(self): method test_set_year_with_invalid_month_for_requests_usage_data (line 1284) | def test_set_year_with_invalid_month_for_requests_usage_data(self): method test_shared_databases (line 1302) | def test_shared_databases(self): method test_generate_api_key (line 1313) | def test_generate_api_key(self): method test_cors_configuration (line 1327) | def test_cors_configuration(self): method test_cors_origins (line 1341) | def test_cors_origins(self): method test_disable_cors (line 1353) | def test_disable_cors(self): method test_update_cors_configuration (line 1374) | def test_update_cors_configuration(self): FILE: tests/unit/cloud_foundry_tests.py class CloudFoundryServiceTests (line 28) | class CloudFoundryServiceTests(unittest.TestCase): method __init__ (line 30) | def __init__(self, *args, **kwargs): method test_get_vcap_service_legacy_creds_success (line 135) | def test_get_vcap_service_legacy_creds_success(self): method test_get_vcap_service_iam_api_no_creds_success (line 142) | def test_get_vcap_service_iam_api_no_creds_success(self): method test_get_vcap_service_default_success_as_dict (line 153) | def test_get_vcap_service_default_success_as_dict(self): method test_get_vcap_service_default_failure_multiple_services (line 160) | def test_get_vcap_service_default_failure_multiple_services(self): method test_get_vcap_service_instance_host (line 168) | def test_get_vcap_service_instance_host(self): method test_get_vcap_service_instance_password (line 176) | def test_get_vcap_service_instance_password(self): method test_get_vcap_service_instance_port (line 184) | def test_get_vcap_service_instance_port(self): method test_get_vcap_service_instance_port_default (line 192) | def test_get_vcap_service_instance_port_default(self): method test_get_vcap_service_instance_url (line 200) | def test_get_vcap_service_instance_url(self): method test_get_vcap_service_instance_username (line 208) | def test_get_vcap_service_instance_username(self): method test_get_vcap_service_instance_iam_api_key (line 216) | def test_get_vcap_service_instance_iam_api_key(self): method test_raise_error_for_missing_host (line 224) | def test_raise_error_for_missing_host(self): method test_raise_error_for_missing_password (line 232) | def test_raise_error_for_missing_password(self): method test_raise_error_for_missing_username (line 244) | def test_raise_error_for_missing_username(self): method test_raise_error_for_invalid_credentials_type (line 256) | def test_raise_error_for_invalid_credentials_type(self): method test_raise_error_for_missing_iam_api_key_and_credentials (line 268) | def test_raise_error_for_missing_iam_api_key_and_credentials(self): method test_raise_error_for_missing_service (line 280) | def test_raise_error_for_missing_service(self): method test_raise_error_for_invalid_vcap (line 289) | def test_raise_error_for_invalid_vcap(self): method test_get_vcap_service_with_dedicated_service_name_success (line 294) | def test_get_vcap_service_with_dedicated_service_name_success(self): FILE: tests/unit/database_partition_tests.py class DatabasePartitionTests (line 28) | class DatabasePartitionTests(UnitTestDbBase): method setUp (line 30) | def setUp(self): method tearDown (line 34) | def tearDown(self): method test_is_partitioned_database (line 38) | def test_is_partitioned_database(self): method test_create_partitioned_design_document (line 41) | def test_create_partitioned_design_document(self): method test_create_non_partitioned_design_document (line 52) | def test_create_non_partitioned_design_document(self): method test_partitioned_all_docs (line 63) | def test_partitioned_all_docs(self): method test_partition_metadata (line 71) | def test_partition_metadata(self): method test_partitioned_search (line 77) | def test_partitioned_search(self): method test_get_partitioned_index (line 96) | def test_get_partitioned_index(self): method test_partitioned_query (line 114) | def test_partitioned_query(self): method test_partitioned_view (line 127) | def test_partitioned_view(self): FILE: tests/unit/database_tests.py class CloudantDatabaseExceptionTests (line 47) | class CloudantDatabaseExceptionTests(unittest.TestCase): method test_raise_without_code (line 52) | def test_raise_without_code(self): method test_raise_using_invalid_code (line 60) | def test_raise_using_invalid_code(self): method test_raise_without_args (line 68) | def test_raise_without_args(self): method test_raise_with_proper_code_and_args (line 77) | def test_raise_with_proper_code_and_args(self): class DatabaseTests (line 86) | class DatabaseTests(UnitTestDbBase): method setUp (line 91) | def setUp(self): method tearDown (line 98) | def tearDown(self): method test_constructor (line 105) | def test_constructor(self): method test_bulk_docs_uses_custom_encoder (line 114) | def test_bulk_docs_uses_custom_encoder(self): method test_missing_revisions_uses_custom_encoder (line 128) | def test_missing_revisions_uses_custom_encoder(self): method test_revs_diff_uses_custom_encoder (line 139) | def test_revs_diff_uses_custom_encoder(self): method test_retrieve_db_url (line 149) | def test_retrieve_db_url(self): method test_retrieve_creds (line 159) | def test_retrieve_creds(self): method test_exists (line 174) | def test_exists(self): method test_exists_raises_httperror (line 184) | def test_exists_raises_httperror(self): method test_create_db_delete_db (line 198) | def test_create_db_delete_db(self): method test_delete_exception (line 221) | def test_delete_exception(self): method test_retrieve_db_metadata (line 232) | def test_retrieve_db_metadata(self): method test_retrieve_document_count (line 245) | def test_retrieve_document_count(self): method test_create_document_with_id (line 252) | def test_create_document_with_id(self): method test_get_non_existing_document_from_remote (line 276) | def test_get_non_existing_document_from_remote(self): method test_get_non_existing_document_from_cache (line 283) | def test_get_non_existing_document_from_cache(self): method test_get_document_from_cache (line 290) | def test_get_document_from_cache(self): method test_get_document_from_remote (line 301) | def test_get_document_from_remote(self): method test_create_document_that_already_exists (line 312) | def test_create_document_that_already_exists(self): method test_create_document_without_id (line 325) | def test_create_document_without_id(self): method test_create_design_document (line 340) | def test_create_design_document(self): method test_create_empty_document (line 357) | def test_create_empty_document(self): method test_retrieve_design_documents (line 368) | def test_retrieve_design_documents(self): method test_retrieve_design_document_list (line 395) | def test_retrieve_design_document_list(self): method test_retrieve_design_document (line 407) | def test_retrieve_design_document(self): method test_get_security_document (line 425) | def test_get_security_document(self): method test_retrieve_view_results (line 434) | def test_retrieve_view_results(self): method test_retrieve_grouped_view_result_with_page_size (line 457) | def test_retrieve_grouped_view_result_with_page_size(self): method test_retrieve_raw_view_results (line 485) | def test_retrieve_raw_view_results(self): method test_all_docs_post (line 499) | def test_all_docs_post(self): method test_all_docs_post_empty_key_list (line 514) | def test_all_docs_post_empty_key_list(self): method test_all_docs_post_multiple_params (line 523) | def test_all_docs_post_multiple_params(self): method test_all_docs_get (line 539) | def test_all_docs_get(self): method test_all_docs_get_with_long_type (line 550) | def test_all_docs_get_with_long_type(self): method test_all_docs_get_uses_custom_encoder (line 561) | def test_all_docs_get_uses_custom_encoder(self): method test_custom_result_context_manager (line 570) | def test_custom_result_context_manager(self): method test_keys (line 581) | def test_keys(self): method test_doc_id_in_db (line 592) | def test_doc_id_in_db(self): method test_doc_id_not_in_db (line 599) | def test_doc_id_not_in_db(self): method test_get_non_existing_doc_via_getitem (line 606) | def test_get_non_existing_doc_via_getitem(self): method test_get_db_via_getitem (line 616) | def test_get_db_via_getitem(self): method test_document_iteration_under_fetch_limit (line 643) | def test_document_iteration_under_fetch_limit(self): method test_document_iteration_over_fetch_limit (line 677) | def test_document_iteration_over_fetch_limit(self): method test_document_iteration_completeness (line 710) | def test_document_iteration_completeness(self): method test_document_iteration_returns_valid_documents (line 743) | def test_document_iteration_returns_valid_documents(self): method test_bulk_docs_creation (line 781) | def test_bulk_docs_creation(self): method test_bulk_docs_update (line 794) | def test_bulk_docs_update(self): method test_missing_revisions (line 819) | def test_missing_revisions(self): method test_revisions_diff (line 838) | def test_revisions_diff(self): method test_get_set_revision_limit (line 860) | def test_get_set_revision_limit(self, m_req): method test_view_clean_up (line 891) | def test_view_clean_up(self): method test_changes_feed_call (line 897) | def test_changes_feed_call(self): method test_changes_inifinite_feed_call (line 908) | def test_changes_inifinite_feed_call(self): method test_get_list_function_result_with_invalid_argument (line 920) | def test_get_list_function_result_with_invalid_argument(self): method test_get_list_function_result (line 929) | def test_get_list_function_result(self): method test_get_show_result (line 962) | def test_get_show_result(self): method test_create_doc_with_update_handler (line 987) | def test_create_doc_with_update_handler(self): method test_update_doc_with_update_handler (line 1008) | def test_update_doc_with_update_handler(self): method test_update_handler_raises_httperror (line 1043) | def test_update_handler_raises_httperror(self): method test_database_request_fails_after_client_disconnects (line 1063) | def test_database_request_fails_after_client_disconnects(self): method test_create_json_index (line 1078) | def test_create_json_index(self): method test_delete_json_index (line 1102) | def test_delete_json_index(self): class CloudantDatabaseTests (line 1117) | class CloudantDatabaseTests(UnitTestDbBase): method setUp (line 1122) | def setUp(self): method tearDown (line 1129) | def tearDown(self): method test_share_database_uses_custom_encoder (line 1136) | def test_share_database_uses_custom_encoder(self): method test_unshare_database_uses_custom_encoder (line 1147) | def test_unshare_database_uses_custom_encoder(self): method test_security_document (line 1158) | def test_security_document(self): method test_share_database_default_permissions (line 1168) | def test_share_database_default_permissions(self): method test_share_database (line 1179) | def test_share_database(self): method test_share_database_with_redundant_role_entries (line 1190) | def test_share_database_with_redundant_role_entries(self): method test_share_database_invalid_role (line 1201) | def test_share_database_invalid_role(self): method test_share_database_empty_role_list (line 1217) | def test_share_database_empty_role_list(self): method test_unshare_database (line 1233) | def test_unshare_database(self): method test_retrieve_shards (line 1244) | def test_retrieve_shards(self): method test_get_raw_query_result (line 1249) | def test_get_raw_query_result(self): method test_get_query_result_with_kwargs (line 1269) | def test_get_query_result_with_kwargs(self): method test_get_query_result_without_kwargs (line 1289) | def test_get_query_result_without_kwargs(self): method test_get_query_result_without_fields (line 1308) | def test_get_query_result_without_fields(self): method test_get_query_result_with_empty_fields_list (line 1333) | def test_get_query_result_with_empty_fields_list(self): method test_create_text_index (line 1359) | def test_create_text_index(self): method test_create_all_fields_text_index (line 1390) | def test_create_all_fields_text_index(self): method test_create_multiple_indexes_one_ddoc (line 1417) | def test_create_multiple_indexes_one_ddoc(self): method test_create_query_index_failure (line 1462) | def test_create_query_index_failure(self): method test_delete_text_index (line 1481) | def test_delete_text_index(self): method test_delete_query_index_failure (line 1492) | def test_delete_query_index_failure(self): method test_get_query_indexes_raw (line 1506) | def test_get_query_indexes_raw(self): method test_get_query_indexes (line 1540) | def test_get_query_indexes(self): method test_get_search_result_with_invalid_argument (line 1558) | def test_get_search_result_with_invalid_argument(self): method test_get_search_result_with_both_q_and_query (line 1568) | def test_get_search_result_with_both_q_and_query(self): method test_get_search_result_with_invalid_value_types (line 1578) | def test_get_search_result_with_invalid_value_types(self): method test_get_search_result_without_query (line 1613) | def test_get_search_result_without_query(self): method test_get_search_result_with_invalid_query_type (line 1627) | def test_get_search_result_with_invalid_query_type(self): method test_get_search_result_executes_search_query (line 1640) | def test_get_search_result_executes_search_query(self): method test_get_search_result_executes_search_q (line 1673) | def test_get_search_result_executes_search_q(self): method test_get_search_result_executes_search_query_with_group_option (line 1700) | def test_get_search_result_executes_search_query_with_group_option(self): FILE: tests/unit/db_updates_tests.py class DbUpdatesTestsBase (line 33) | class DbUpdatesTestsBase(UnitTestDbBase): method setUp (line 38) | def setUp(self): method tearDown (line 50) | def tearDown(self): method create_dbs (line 71) | def create_dbs(self): method assert_changes_in_db_updates_feed (line 88) | def assert_changes_in_db_updates_feed(self, changes): class CouchDbUpdatesTests (line 109) | class CouchDbUpdatesTests(DbUpdatesTestsBase): method test_constructor_db_updates (line 113) | def test_constructor_db_updates(self): method test_stop_iteration_of_continuous_feed_with_heartbeat (line 125) | def test_stop_iteration_of_continuous_feed_with_heartbeat(self): method test_get_raw_content (line 142) | def test_get_raw_content(self): method test_get_longpoll_feed_as_default (line 159) | def test_get_longpoll_feed_as_default(self): method test_get_longpoll_feed_explicit (line 180) | def test_get_longpoll_feed_explicit(self): method test_get_continuous_with_timeout (line 202) | def test_get_continuous_with_timeout(self): method test_invalid_argument (line 220) | def test_invalid_argument(self): method test_invalid_argument_type (line 239) | def test_invalid_argument_type(self): method test_invalid_non_positive_integer_argument (line 251) | def test_invalid_non_positive_integer_argument(self): method test_invalid_feed_value (line 262) | def test_invalid_feed_value(self): class CloudantDbUpdatesTests (line 281) | class CloudantDbUpdatesTests(DbUpdatesTestsBase): method test_constructor_db_updates (line 286) | def test_constructor_db_updates(self): method test_get_last_seq (line 298) | def test_get_last_seq(self): method test_stop_iteration_of_continuous_feed_using_since_now (line 308) | def test_stop_iteration_of_continuous_feed_using_since_now(self): method test_get_raw_content (line 326) | def test_get_raw_content(self): method test_get_normal_feed_default (line 342) | def test_get_normal_feed_default(self): method test_get_normal_feed_explicit (line 356) | def test_get_normal_feed_explicit(self): method test_get_longpoll_feed (line 370) | def test_get_longpoll_feed(self): method test_get_feed_with_heartbeat (line 382) | def test_get_feed_with_heartbeat(self): method test_get_raw_feed_with_heartbeat (line 404) | def test_get_raw_feed_with_heartbeat(self): method test_get_feed_descending (line 427) | def test_get_feed_descending(self): method test_get_feed_using_since (line 441) | def test_get_feed_using_since(self): method test_get_feed_using_timeout (line 455) | def test_get_feed_using_timeout(self): method test_invalid_argument (line 478) | def test_invalid_argument(self): method test_invalid_argument_type (line 492) | def test_invalid_argument_type(self): method test_invalid_non_positive_integer_argument (line 504) | def test_invalid_non_positive_integer_argument(self): method test_invalid_feed_value (line 515) | def test_invalid_feed_value(self): FILE: tests/unit/design_document_tests.py class CloudantDesignDocumentExceptionTests (line 40) | class CloudantDesignDocumentExceptionTests(unittest.TestCase): method test_raise_without_code (line 45) | def test_raise_without_code(self): method test_raise_using_invalid_code (line 53) | def test_raise_using_invalid_code(self): method test_raise_without_args (line 61) | def test_raise_without_args(self): method test_raise_with_proper_code_and_args (line 70) | def test_raise_with_proper_code_and_args(self): class DesignDocumentTests (line 79) | class DesignDocumentTests(UnitTestDbBase): method setUp (line 84) | def setUp(self): method tearDown (line 91) | def tearDown(self): method test_constructor_with_docid (line 98) | def test_constructor_with_docid(self): method test_constructor_with_design_docid (line 108) | def test_constructor_with_design_docid(self): method test_constructor_without_docid (line 118) | def test_constructor_without_docid(self): method test_create_design_document_with_docid_encoded_url (line 127) | def test_create_design_document_with_docid_encoded_url(self): method test_fetch_existing_design_document_with_docid_encoded_url (line 138) | def test_fetch_existing_design_document_with_docid_encoded_url(self): method test_update_design_document_with_encoded_url (line 149) | def test_update_design_document_with_encoded_url(self): method test_delete_design_document_success_with_encoded_url (line 164) | def test_delete_design_document_success_with_encoded_url(self): method test_add_a_view (line 176) | def test_add_a_view(self): method test_adding_existing_view (line 194) | def test_adding_existing_view(self): method test_adding_query_index_view (line 212) | def test_adding_query_index_view(self): method test_update_a_view (line 227) | def test_update_a_view(self): method test_update_non_existing_view (line 247) | def test_update_non_existing_view(self): method test_update_query_index_view (line 264) | def test_update_query_index_view(self): method test_delete_a_view (line 295) | def test_delete_a_view(self): method test_delete_a_query_index_view (line 308) | def test_delete_a_query_index_view(self): method test_fetch_map_reduce (line 336) | def test_fetch_map_reduce(self): method test_fetch_dbcopy (line 369) | def test_fetch_dbcopy(self): method test_fetch_no_views (line 409) | def test_fetch_no_views(self): method test_fetch_query_views (line 426) | def test_fetch_query_views(self): method test_fetch_text_indexes (line 458) | def test_fetch_text_indexes(self): method test_fetch_text_indexes_and_query_views (line 493) | def test_fetch_text_indexes_and_query_views(self): method test_text_index_save_fails_when_lang_is_not_query (line 535) | def test_text_index_save_fails_when_lang_is_not_query(self): method test_text_index_save_fails_with_existing_search_index (line 559) | def test_text_index_save_fails_with_existing_search_index(self): method test_mr_view_save_fails_when_lang_is_query (line 594) | def test_mr_view_save_fails_when_lang_is_query(self): method test_mr_view_save_succeeds (line 613) | def test_mr_view_save_succeeds(self): method test_query_view_save_fails_when_lang_is_not_query (line 626) | def test_query_view_save_fails_when_lang_is_not_query(self): method test_query_view_save_succeeds (line 659) | def test_query_view_save_succeeds(self): method test_save_with_no_views (line 684) | def test_save_with_no_views(self): method test_setting_id (line 707) | def test_setting_id(self): method test_iterating_over_views (line 720) | def test_iterating_over_views(self): method test_list_views (line 737) | def test_list_views(self): method test_get_view (line 754) | def test_get_view(self): method test_get_info (line 773) | def test_get_info(self): method test_get_info_raises_httperror (line 805) | def test_get_info_raises_httperror(self): method test_get_search_info (line 822) | def test_get_search_info(self): method test_get_search_disk_size (line 853) | def test_get_search_disk_size(self): method test_get_search_info_raises_httperror (line 891) | def test_get_search_info_raises_httperror(self): method test_add_a_search_index (line 908) | def test_add_a_search_index(self): method test_add_a_search_index_with_analyzer (line 927) | def test_add_a_search_index_with_analyzer(self): method test_adding_existing_search_index (line 950) | def test_adding_existing_search_index(self): method test_update_a_search_index (line 973) | def test_update_a_search_index(self): method test_update_a_search_index_with_analyzer (line 996) | def test_update_a_search_index_with_analyzer(self): method test_update_non_existing_search_index (line 1024) | def test_update_non_existing_search_index(self): method test_delete_a_search_index (line 1042) | def test_delete_a_search_index(self): method test_fetch_search_index (line 1062) | def test_fetch_search_index(self): method test_fetch_no_search_index (line 1095) | def test_fetch_no_search_index(self): method test_search_index_save_fails_when_lang_is_query (line 1115) | def test_search_index_save_fails_when_lang_is_query(self): method test_search_index_save_fails_with_existing_text_index (line 1136) | def test_search_index_save_fails_with_existing_text_index(self): method test_search_index_save_succeeds (line 1169) | def test_search_index_save_succeeds(self): method test_save_with_no_search_indexes (line 1182) | def test_save_with_no_search_indexes(self): method test_iterating_over_search_indexes (line 1203) | def test_iterating_over_search_indexes(self): method test_list_search_indexes (line 1222) | def test_list_search_indexes(self): method test_get_search_index (line 1241) | def test_get_search_index(self): method test_rewrite_rule (line 1260) | def test_rewrite_rule(self): method test_add_a_list_function (line 1286) | def test_add_a_list_function(self): method test_adding_existing_list_function (line 1309) | def test_adding_existing_list_function(self): method test_update_a_list_function (line 1332) | def test_update_a_list_function(self): method test_update_non_existing_list_function (line 1358) | def test_update_non_existing_list_function(self): method test_delete_a_list_function (line 1377) | def test_delete_a_list_function(self): method test_fetch_list_functions (line 1399) | def test_fetch_list_functions(self): method test_fetch_no_list_functions (line 1433) | def test_fetch_no_list_functions(self): method test_save_with_no_list_functions (line 1453) | def test_save_with_no_list_functions(self): method test_iterating_over_list_functions (line 1473) | def test_iterating_over_list_functions(self): method test_listing_list_functions (line 1493) | def test_listing_list_functions(self): method test_get_list_function (line 1513) | def test_get_list_function(self): method test_geospatial_index (line 1534) | def test_geospatial_index(self): method test_add_a_show_function (line 1589) | def test_add_a_show_function(self): method test_adding_existing_show_functions (line 1612) | def test_adding_existing_show_functions(self): method test_update_a_show_function (line 1635) | def test_update_a_show_function(self): method test_update_non_existing_show_function (line 1661) | def test_update_non_existing_show_function(self): method test_delete_a_show_function (line 1680) | def test_delete_a_show_function(self): method test_fetch_show_functions (line 1702) | def test_fetch_show_functions(self): method test_fetch_no_show_functions (line 1736) | def test_fetch_no_show_functions(self): method test_save_with_no_show_functions (line 1756) | def test_save_with_no_show_functions(self): method test_iterating_over_show_functions (line 1776) | def test_iterating_over_show_functions(self): method test_listing_show_functions (line 1796) | def test_listing_show_functions(self): method test_get_show_function (line 1816) | def test_get_show_function(self): method test_update_validator (line 1836) | def test_update_validator(self): FILE: tests/unit/document_tests.py function find_fixture (line 43) | def find_fixture(name): class CloudantDocumentExceptionTests (line 49) | class CloudantDocumentExceptionTests(unittest.TestCase): method test_raise_without_code (line 54) | def test_raise_without_code(self): method test_raise_using_invalid_code (line 62) | def test_raise_using_invalid_code(self): method test_raise_without_args (line 70) | def test_raise_without_args(self): method test_raise_with_proper_code_and_args (line 79) | def test_raise_with_proper_code_and_args(self): class DocumentTests (line 88) | class DocumentTests(UnitTestDbBase): method setUp (line 93) | def setUp(self): method tearDown (line 100) | def tearDown(self): method test_constructor_with_docid (line 107) | def test_constructor_with_docid(self): method test_document_url (line 116) | def test_document_url(self): method test_document_url_encodes_correctly (line 125) | def test_document_url_encodes_correctly(self): method test_design_document_url (line 135) | def test_design_document_url(self): method test_design_document_url_encodes_correctly (line 146) | def test_design_document_url_encodes_correctly(self): method test_constructor_without_docid (line 156) | def test_constructor_without_docid(self): method test_document_exists (line 166) | def test_document_exists(self): method test_document_exists_raises_httperror (line 178) | def test_document_exists_raises_httperror(self): method test_retrieve_document_json (line 194) | def test_retrieve_document_json(self): method test_create_document_with_docid (line 206) | def test_create_document_with_docid(self): method test_create_document_with_docid_encoded_url (line 219) | def test_create_document_with_docid_encoded_url(self): method test_create_document_without_docid (line 232) | def test_create_document_without_docid(self): method test_create_existing_document (line 247) | def test_create_existing_document(self): method test_fetch_document_without_docid (line 261) | def test_fetch_document_without_docid(self): method test_fetch_non_existing_document (line 276) | def test_fetch_non_existing_document(self): method test_fetch_existing_document_with_docid (line 287) | def test_fetch_existing_document_with_docid(self): method test_appended_error_message_using_save_with_invalid_key (line 299) | def test_appended_error_message_using_save_with_invalid_key(self): method test_fetch_existing_document_with_docid_encoded_url (line 331) | def test_fetch_existing_document_with_docid_encoded_url(self): method test_create_document_using_save (line 344) | def test_create_document_using_save(self): method test_update_document_using_save (line 360) | def test_update_document_using_save(self): method test_update_document_with_encoded_url (line 379) | def test_update_document_with_encoded_url(self): method test_list_field_append_successfully (line 398) | def test_list_field_append_successfully(self): method test_list_field_append_failure (line 411) | def test_list_field_append_failure(self): method test_list_field_remove_successfully (line 425) | def test_list_field_remove_successfully(self): method test_list_field_remove_failure (line 437) | def test_list_field_remove_failure(self): method test_field_set_and_replace (line 451) | def test_field_set_and_replace(self): method test_update_field (line 466) | def test_update_field(self): method test_update_field_maxretries (line 483) | def test_update_field_maxretries(self, m_save): method test_update_field_success_on_retry (line 512) | def test_update_field_success_on_retry(self): method test_delete_document_failure (line 547) | def test_delete_document_failure(self): method test_delete_document_success (line 566) | def test_delete_document_success(self): method test_delete_document_success_with_encoded_url (line 581) | def test_delete_document_success_with_encoded_url(self): method test_document_context_manager (line 596) | def test_document_context_manager(self): method test_document_context_manager_no_doc_id (line 613) | def test_document_context_manager_no_doc_id(self): method test_document_context_manager_creation_failure_on_error (line 625) | def test_document_context_manager_creation_failure_on_error(self): method test_document_context_manager_update_failure_on_error (line 643) | def test_document_context_manager_update_failure_on_error(self): method test_document_context_manager_doc_create (line 666) | def test_document_context_manager_doc_create(self): method test_setting_id (line 677) | def test_setting_id(self): method test_removing_id (line 686) | def test_removing_id(self): method test_get_text_attachment (line 695) | def test_get_text_attachment(self): method test_get_json_attachment (line 721) | def test_get_json_attachment(self): method test_get_binary_attachment (line 745) | def test_get_binary_attachment(self): method test_attachment_management (line 766) | def test_attachment_management(self): method test_document_request_fails_after_client_disconnects (line 897) | def test_document_request_fails_after_client_disconnects(self): method test_document_custom_json_encoder_and_decoder (line 914) | def test_document_custom_json_encoder_and_decoder(self): FILE: tests/unit/document_validation_tests.py class ValidationExceptionMsg (line 29) | class ValidationExceptionMsg(Enum): class Expect (line 33) | class Expect(Enum): class ValidationTests (line 41) | class ValidationTests(unittest.TestCase): method setUp (line 45) | def setUp(self): method teardown (line 60) | def teardown(self): method test_get_invalid_all_docs (line 70) | def test_get_invalid_all_docs(self): method test_get_valid_ddoc (line 78) | def test_get_valid_ddoc(self): method test_get_invalid_design (line 87) | def test_get_invalid_design(self): method test_get_missing_ddoc_with_slash (line 96) | def test_get_missing_ddoc_with_slash(self): method test_get_invalid_view (line 104) | def test_get_invalid_view(self): method test_get_invalid_view_info (line 113) | def test_get_invalid_view_info(self): method test_get_invalid_search (line 122) | def test_get_invalid_search(self): method test_get_invalid_search_info (line 131) | def test_get_invalid_search_info(self): method test_get_missing_geo (line 140) | def test_get_missing_geo(self): method test_get_missing_geo_info (line 154) | def test_get_missing_geo_info(self): method test_get_local_doc (line 163) | def test_get_local_doc(self): method test_get_invalid_local (line 171) | def test_get_invalid_local(self): method test_get_invalid_local_docs (line 179) | def test_get_invalid_local_docs(self): method test_get_invalid_design_docs (line 187) | def test_get_invalid_design_docs(self): method test_get_invalid_changes (line 195) | def test_get_invalid_changes(self): method test_get_invalid_ensure_full_commit (line 203) | def test_get_invalid_ensure_full_commit(self): method test_get_invalid_index (line 211) | def test_get_invalid_index(self): method test_get_invalid_revs_limit (line 219) | def test_get_invalid_revs_limit(self): method test_get_invalid_security (line 227) | def test_get_invalid_security(self): method test_get_invalid_shards (line 235) | def test_get_invalid_shards(self): method test_delete_invalid_index (line 243) | def test_delete_invalid_index(self): method test_delete_valid_ddoc (line 251) | def test_delete_valid_ddoc(self): method test_delete_invalid_ddoc (line 259) | def test_delete_invalid_ddoc(self): method test_delete_valid_local_doc (line 268) | def test_delete_valid_local_doc(self): method test_delete_invalid_local (line 276) | def test_delete_invalid_local(self): method test_put_valid_ddoc (line 285) | def test_put_valid_ddoc(self): method test_put_invalid_ddoc (line 293) | def test_put_invalid_ddoc(self): method test_put_valid_local_doc (line 301) | def test_put_valid_local_doc(self): method test_put_invalid_local_doc (line 309) | def test_put_invalid_local_doc(self): method test_put_invalid_revs_limit (line 317) | def test_put_invalid_revs_limit(self): method test_put_invalid_security (line 325) | def test_put_invalid_security(self): method test_get_valid_ddoc_attachment (line 333) | def test_get_valid_ddoc_attachment(self): method test_put_valid_ddoc_attachment (line 341) | def test_put_valid_ddoc_attachment(self): method test_delete_valid_ddoc_attachment (line 349) | def test_delete_valid_ddoc_attachment(self): method test_get_invalid_ddoc_attachment (line 357) | def test_get_invalid_ddoc_attachment(self): method test_put_invalid_ddoc_attachment (line 367) | def test_put_invalid_ddoc_attachment(self): method test_delete_invalid_ddoc_attachment (line 377) | def test_delete_invalid_ddoc_attachment(self): method test_delete_index_via_attachment (line 387) | def test_delete_index_via_attachment(self): method test_get_view_via_ddoc_attachment (line 405) | def test_get_view_via_ddoc_attachment(self): method test_put_view_via_ddoc_attachment (line 423) | def test_put_view_via_ddoc_attachment(self): method test_delete_view_via_ddoc_attachment (line 436) | def test_delete_view_via_ddoc_attachment(self): method test_get_view_info_via_ddoc_attachment (line 449) | def test_get_view_info_via_ddoc_attachment(self): method test_get_search_via_ddoc_attachment (line 462) | def test_get_search_via_ddoc_attachment(self): method test_get_search_info_via_ddoc_attachment (line 483) | def test_get_search_info_via_ddoc_attachment(self): method test_get_geo_via_ddoc_attachment (line 497) | def test_get_geo_via_ddoc_attachment(self): method test_get_geo_info_via_ddoc_attachment (line 514) | def test_get_geo_info_via_ddoc_attachment(self): method test_get_invalid_partition_info (line 529) | def test_get_invalid_partition_info(self): method test_get_invalid_partition_info_via_attachment (line 537) | def test_get_invalid_partition_info_via_attachment(self): method test_get_partition_info (line 545) | def test_get_partition_info(self): method test_get_invalid_partition_all_docs_via_attachment (line 553) | def test_get_invalid_partition_all_docs_via_attachment(self): method mocked_get_requests (line 561) | def mocked_get_requests(self, rev=None, override_status_code=None): method mocked_get_att_requests (line 586) | def mocked_get_att_requests(self): method mocked_head_requests (line 602) | def mocked_head_requests(self, override_status_code=None): method mocked_delete_requests (line 613) | def mocked_delete_requests(self): method mocked_delete_att_requests (line 623) | def mocked_delete_att_requests(self): method mocked_put_doc_requests (line 640) | def mocked_put_doc_requests(self): method mocked_put_att_requests (line 655) | def mocked_put_att_requests(self): method get_document_variants (line 674) | def get_document_variants(self, doc_id, expected_enum, is_ddoc=False, method get_doc_attachment_variants (line 688) | def get_doc_attachment_variants(self, doc_id, att_name, expected_enum,... method put_document_variants (line 701) | def put_document_variants(self, doc_id, expected_enum, is_ddoc=False, method put_doc_attachment_variants (line 713) | def put_doc_attachment_variants(self, doc_id, att_name, expected_enum,... method delete_document_variants (line 726) | def delete_document_variants(self, doc_id, expected_enum, is_ddoc=False, method delete_doc_attachment_variants (line 738) | def delete_doc_attachment_variants(self, doc_id, attname, expected_enu... method head_document (line 752) | def head_document(self): method delete_document (line 762) | def delete_document(self): method fetch_document (line 778) | def fetch_document(self): method put_document (line 793) | def put_document(self): method delete_doc_attachment (line 808) | def delete_doc_attachment(self): method get_doc_attachment (line 825) | def get_doc_attachment(self): method put_doc_attachment (line 841) | def put_doc_attachment(self): method create_doc (line 860) | def create_doc(self, doc_id=None, is_ddoc=False): method assert_exception_msg (line 876) | def assert_exception_msg(self, cae): method assert_path_segments (line 892) | def assert_path_segments(self, actual_call_args_list, exp_segment_count): FILE: tests/unit/iam_auth_tests.py class IAMAuthTests (line 64) | class IAMAuthTests(unittest.TestCase): method _mock_cookie (line 68) | def _mock_cookie(expires_secs=300): method test_iam_set_credentials (line 89) | def test_iam_set_credentials(self): method test_iam_get_access_token (line 99) | def test_iam_get_access_token(self, m_req): method test_iam_get_access_token_with_iam_client_id_and_secret (line 125) | def test_iam_get_access_token_with_iam_client_id_and_secret(self, m_req): method test_iam_login (line 157) | def test_iam_login(self, m_token, m_req): method test_iam_logout (line 175) | def test_iam_logout(self): method test_iam_get_session_info (line 184) | def test_iam_get_session_info(self, m_get): method test_iam_first_request (line 201) | def test_iam_first_request(self, m_req, m_login): method test_iam_renew_cookie_on_expiry (line 226) | def test_iam_renew_cookie_on_expiry(self, m_req, m_login): method test_iam_renew_cookie_on_401_success (line 248) | def test_iam_renew_cookie_on_401_success(self, m_req, m_login): method test_iam_renew_cookie_on_401_failure (line 278) | def test_iam_renew_cookie_on_401_failure(self, m_req, m_login): method test_iam_renew_cookie_disabled (line 304) | def test_iam_renew_cookie_disabled(self, m_req, m_login): method test_iam_client_create (line 327) | def test_iam_client_create(self, m_req, m_login): method test_iam_client_session_login (line 350) | def test_iam_client_session_login(self, m_set, m_login): method test_iam_client_session_login_with_new_credentials (line 366) | def test_iam_client_session_login_with_new_credentials(self, m_set, m_... FILE: tests/unit/index_tests.py class CloudantIndexExceptionTests (line 42) | class CloudantIndexExceptionTests(unittest.TestCase): method test_raise_without_code (line 47) | def test_raise_without_code(self): method test_raise_using_invalid_code (line 55) | def test_raise_using_invalid_code(self): method test_raise_with_proper_code_and_args (line 63) | def test_raise_with_proper_code_and_args(self): class IndexTests (line 73) | class IndexTests(UnitTestDbBase): method setUp (line 77) | def setUp(self): method tearDown (line 84) | def tearDown(self): method test_constructor_with_args (line 91) | def test_constructor_with_args(self): method test_constructor_with_only_a_db (line 104) | def test_constructor_with_only_a_db(self): method test_retrieve_index_url (line 117) | def test_retrieve_index_url(self): method test_index_to_dictionary (line 127) | def test_index_to_dictionary(self): method test_index_as_a_dict_with_none_attributes (line 140) | def test_index_as_a_dict_with_none_attributes(self): method test_create_an_index_using_ddoc_index_name (line 153) | def test_create_an_index_using_ddoc_index_name(self): method test_create_an_index_without_ddoc_index_name (line 180) | def test_create_an_index_without_ddoc_index_name(self): method test_create_an_index_with_empty_ddoc_index_name (line 208) | def test_create_an_index_with_empty_ddoc_index_name(self): method test_create_an_index_using_design_prefix (line 236) | def test_create_an_index_using_design_prefix(self): method test_create_uses_custom_encoder (line 264) | def test_create_uses_custom_encoder(self): method test_create_fails_due_to_ddocid_validation (line 275) | def test_create_fails_due_to_ddocid_validation(self): method test_create_fails_due_to_index_name_validation (line 288) | def test_create_fails_due_to_index_name_validation(self): method test_create_fails_due_to_def_validation (line 301) | def test_create_fails_due_to_def_validation(self): method test_deleting_index (line 313) | def test_deleting_index(self): method test_deleting_non_existing_index (line 325) | def test_deleting_non_existing_index(self): method test_deleting_index_without_ddoc (line 337) | def test_deleting_index_without_ddoc(self): method test_deleting_index_without_index_name (line 353) | def test_deleting_index_without_index_name(self): method test_index_via_query (line 369) | def test_index_via_query(self): method test_index_usage_via_query (line 383) | def test_index_usage_via_query(self): class TextIndexTests (line 396) | class TextIndexTests(UnitTestDbBase): method setUp (line 400) | def setUp(self): method tearDown (line 407) | def tearDown(self): method test_constructor_with_args (line 414) | def test_constructor_with_args(self): method test_constructor_with_only_a_db (line 427) | def test_constructor_with_only_a_db(self): method test_create_a_search_index_no_kwargs (line 440) | def test_create_a_search_index_no_kwargs(self): method test_create_a_search_index_with_kwargs (line 467) | def test_create_a_search_index_with_kwargs(self): method test_create_a_search_index_invalid_argument (line 502) | def test_create_a_search_index_invalid_argument(self): method test_create_a_search_index_invalid_fields_value (line 512) | def test_create_a_search_index_invalid_fields_value(self): method test_create_a_search_index_invalid_default_field_value (line 527) | def test_create_a_search_index_invalid_default_field_value(self): method test_create_a_search_index_invalid_selector_value (line 542) | def test_create_a_search_index_invalid_selector_value(self): method test_create_unpartitioned_query_index (line 557) | def test_create_unpartitioned_query_index(self): method test_search_index_via_query (line 572) | def test_search_index_via_query(self): class SpecialIndexTests (line 588) | class SpecialIndexTests(unittest.TestCase): method setUp (line 592) | def setUp(self): method test_constructor (line 600) | def test_constructor(self): method test_create_disabled (line 612) | def test_create_disabled(self): method test_delete_disabled (line 625) | def test_delete_disabled(self): FILE: tests/unit/infinite_feed_tests.py class MethodCallCount (line 31) | class MethodCallCount(object): method __init__ (line 37) | def __init__(self, meth_ref): method __call__ (line 41) | def __call__(self): class CloudantFeedExceptionTests (line 45) | class CloudantFeedExceptionTests(unittest.TestCase): method test_raise_without_code (line 50) | def test_raise_without_code(self): method test_raise_using_invalid_code (line 58) | def test_raise_using_invalid_code(self): method test_raise_with_proper_code_and_args (line 66) | def test_raise_with_proper_code_and_args(self): class InfiniteFeedTests (line 75) | class InfiniteFeedTests(UnitTestDbBase): method setUp (line 80) | def setUp(self): method tearDown (line 87) | def tearDown(self): method test_constructor_no_feed_option (line 94) | def test_constructor_no_feed_option(self): method test_constructor_with_feed_option (line 105) | def test_constructor_with_feed_option(self): method test_constructor_with_invalid_feed_option (line 117) | def test_constructor_with_invalid_feed_option(self): method test_invalid_source_couchdb (line 131) | def test_invalid_source_couchdb(self): method test_constructor_db_updates (line 142) | def test_constructor_db_updates(self): method test_infinite_feed (line 153) | def test_infinite_feed(self): method test_infinite_db_updates_feed (line 190) | def test_infinite_db_updates_feed(self): FILE: tests/unit/param_translation_tests.py class PythonToCouchTests (line 25) | class PythonToCouchTests(unittest.TestCase): method test_valid_descending (line 30) | def test_valid_descending(self): method test_valid_endkey (line 43) | def test_valid_endkey(self): method test_valid_endkey_docid (line 63) | def test_valid_endkey_docid(self): method test_valid_group (line 72) | def test_valid_group(self): method test_valid_group_level (line 79) | def test_valid_group_level(self): method test_valid_include_docs (line 97) | def test_valid_include_docs(self): method test_valid_inclusive_end (line 110) | def test_valid_inclusive_end(self): method test_valid_key (line 123) | def test_valid_key(self): method test_valid_keys (line 140) | def test_valid_keys(self): method test_valid_limit (line 163) | def test_valid_limit(self): method test_valid_reduce (line 172) | def test_valid_reduce(self): method test_valid_skip (line 182) | def test_valid_skip(self): method test_valid_stale (line 191) | def test_valid_stale(self): method test_valid_startkey (line 201) | def test_valid_startkey(self): method test_valid_startkey_docid (line 221) | def test_valid_startkey_docid(self): method test_valid_update (line 230) | def test_valid_update(self): method test_invalid_argument (line 238) | def test_invalid_argument(self): method test_invalid_descending (line 246) | def test_invalid_descending(self): method test_invalid_endkey (line 255) | def test_invalid_endkey(self): method test_invalid_endkey_docid (line 265) | def test_invalid_endkey_docid(self): method test_invalid_group (line 274) | def test_invalid_group(self): method test_invalid_group_level (line 283) | def test_invalid_group_level(self): method test_invalid_include_docs (line 292) | def test_invalid_include_docs(self): method test_invalid_inclusive_end (line 301) | def test_invalid_inclusive_end(self): method test_invalid_key (line 310) | def test_invalid_key(self): method test_invalid_keys_not_list (line 320) | def test_invalid_keys_not_list(self): method test_invalid_keys_invalid_key (line 329) | def test_invalid_keys_invalid_key(self): method test_invalid_limit (line 339) | def test_invalid_limit(self): method test_invalid_reduce (line 348) | def test_invalid_reduce(self): method test_invalid_skip (line 357) | def test_invalid_skip(self): method test_invalid_stale (line 366) | def test_invalid_stale(self): method test_invalid_startkey (line 380) | def test_invalid_startkey(self): method test_invalid_startkey_docid (line 390) | def test_invalid_startkey_docid(self): FILE: tests/unit/query_result_tests.py class QueryResultTests (line 35) | class QueryResultTests(UnitTestDbBase): method setUp (line 40) | def setUp(self): method tearDown (line 48) | def tearDown(self): method create_result (line 55) | def create_result(self, selector={'_id': {'$gt': 0}}, method test_constructor_with_options (line 67) | def test_constructor_with_options(self): method test_constructor_without_options (line 78) | def test_constructor_without_options(self): method test_constructor_with_query_skip_limit (line 89) | def test_constructor_with_query_skip_limit(self): method test_constructor_with_query_skip_limit_options_skip_limit (line 100) | def test_constructor_with_query_skip_limit_options_skip_limit(self): method test_key_value_access_is_not_supported (line 111) | def test_key_value_access_is_not_supported(self): method test_key_value_slicing_is_not_supported (line 120) | def test_key_value_slicing_is_not_supported(self): method test_get_item_by_index (line 130) | def test_get_item_by_index(self): method test_get_item_by_index_using_skip_limit (line 144) | def test_get_item_by_index_using_skip_limit(self): method test_get_item_by_index_using_limit (line 164) | def test_get_item_by_index_using_limit(self): method test_get_item_by_index_using_skip (line 183) | def test_get_item_by_index_using_skip(self): method test_get_item_by_negative_index (line 202) | def test_get_item_by_negative_index(self): method test_get_item_slice_no_start_no_stop (line 211) | def test_get_item_slice_no_start_no_stop(self): method test_get_item_invalid_index_slice (line 222) | def test_get_item_invalid_index_slice(self): method test_get_item_index_slice_using_start_stop (line 248) | def test_get_item_index_slice_using_start_stop(self): method test_get_item_index_slice_using_start_stop_limit (line 259) | def test_get_item_index_slice_using_start_stop_limit(self): method test_get_item_index_slice_using_start_stop_skip (line 275) | def test_get_item_index_slice_using_start_stop_skip(self): method test_get_item_index_slice_using_start_stop_limit_skip (line 291) | def test_get_item_index_slice_using_start_stop_limit_skip(self): method test_get_item_index_slice_using_start_only (line 308) | def test_get_item_index_slice_using_start_only(self): method test_get_item_index_slice_using_start_only_limit (line 318) | def test_get_item_index_slice_using_start_only_limit(self): method test_get_item_index_slice_using_start_only_skip (line 333) | def test_get_item_index_slice_using_start_only_skip(self): method test_get_item_index_slice_using_start_only_limit_skip (line 348) | def test_get_item_index_slice_using_start_only_limit_skip(self): method test_get_item_index_slice_using_stop_only (line 364) | def test_get_item_index_slice_using_stop_only(self): method test_get_item_index_slice_using_stop_only_limit (line 377) | def test_get_item_index_slice_using_stop_only_limit(self): method test_get_item_index_slice_using_stop_only_skip (line 395) | def test_get_item_index_slice_using_stop_only_skip(self): method test_get_item_index_slice_using_stop_only_limit_skip (line 410) | def test_get_item_index_slice_using_stop_only_limit_skip(self): method test_iteration_with_invalid_options (line 426) | def test_iteration_with_invalid_options(self): method test_iteration_invalid_page_size (line 436) | def test_iteration_invalid_page_size(self): method test_iteration_using_valid_page_size (line 451) | def test_iteration_using_valid_page_size(self): method test_iteration_using_default_page_size (line 475) | def test_iteration_using_default_page_size(self): method test_iteration_no_data (line 488) | def test_iteration_no_data(self): FILE: tests/unit/query_tests.py class QueryTests (line 36) | class QueryTests(UnitTestDbBase): method setUp (line 41) | def setUp(self): method tearDown (line 48) | def tearDown(self): method test_constructor_with_kwargs (line 55) | def test_constructor_with_kwargs(self): method test_constructor_without_kwargs (line 64) | def test_constructor_without_kwargs(self): method test_retrieve_query_url (line 73) | def test_retrieve_query_url(self): method test_callable_with_invalid_argument (line 83) | def test_callable_with_invalid_argument(self): method test_callable_with_invalid_value_types (line 94) | def test_callable_with_invalid_value_types(self): method test_callable_without_selector (line 121) | def test_callable_without_selector(self): method test_callable_with_empty_selector (line 136) | def test_callable_with_empty_selector(self): method test_callable_executes_query (line 151) | def test_callable_executes_query(self): method test_custom_result_context_manager (line 170) | def test_custom_result_context_manager(self): FILE: tests/unit/replicator_mock_tests.py class ReplicatorDocumentValidationMockTests (line 31) | class ReplicatorDocumentValidationMockTests(unittest.TestCase): method setUp (line 36) | def setUp(self): method setUpClientMocks (line 48) | def setUpClientMocks(self, admin_party=False, iam_api_key=None): method test_using_admin_party_source_and_target (line 73) | def test_using_admin_party_source_and_target(self): method test_using_basic_auth_source_and_target (line 102) | def test_using_basic_auth_source_and_target(self): method test_using_iam_auth_source_and_target (line 141) | def test_using_iam_auth_source_and_target(self): FILE: tests/unit/replicator_tests.py class CloudantReplicatorExceptionTests (line 41) | class CloudantReplicatorExceptionTests(unittest.TestCase): method test_raise_without_code (line 46) | def test_raise_without_code(self): method test_raise_using_invalid_code (line 54) | def test_raise_using_invalid_code(self): method test_raise_without_args (line 62) | def test_raise_without_args(self): method test_raise_with_proper_code_and_args (line 71) | def test_raise_with_proper_code_and_args(self): class ReplicatorTests (line 80) | class ReplicatorTests(UnitTestDbBase): method setUp (line 85) | def setUp(self): method tearDown (line 100) | def tearDown(self): method test_constructor (line 127) | def test_constructor(self): method test_constructor_failure (line 138) | def test_constructor_failure(self): method test_replication_with_generated_id (line 158) | def test_replication_with_generated_id(self): method test_create_replication (line 167) | def test_create_replication(self): method test_timeout_in_create_replication (line 220) | def test_timeout_in_create_replication(self): method test_create_replication_without_a_source (line 263) | def test_create_replication_without_a_source(self): method test_create_replication_without_a_target (line 278) | def test_create_replication_without_a_target(self): method test_list_replications (line 293) | def test_list_replications(self): method test_retrieve_replication_state (line 312) | def test_retrieve_replication_state(self): method test_retrieve_replication_state_using_invalid_id (line 338) | def test_retrieve_replication_state_using_invalid_id(self): method test_stop_replication (line 355) | def test_stop_replication(self): method test_stop_replication_using_invalid_id (line 384) | def test_stop_replication_using_invalid_id(self): method test_follow_replication (line 399) | def test_follow_replication(self): FILE: tests/unit/result_tests.py class ResultExceptionTests (line 30) | class ResultExceptionTests(unittest.TestCase): method test_raise_without_code (line 35) | def test_raise_without_code(self): method test_raise_using_invalid_code (line 43) | def test_raise_using_invalid_code(self): method test_raise_without_args (line 51) | def test_raise_without_args(self): method test_raise_without_insufficient_args (line 60) | def test_raise_without_insufficient_args(self): method test_raise_with_proper_code_and_args (line 70) | def test_raise_with_proper_code_and_args(self): class ResultTests (line 79) | class ResultTests(UnitTestDbBase): method setUp (line 84) | def setUp(self): method tearDown (line 93) | def tearDown(self): method test_constructor (line 100) | def test_constructor(self): method test_get_item_by_index (line 113) | def test_get_item_by_index(self): method test_get_item_by_index_using_skip_limit (line 128) | def test_get_item_by_index_using_skip_limit(self): method test_get_item_by_index_using_limit (line 143) | def test_get_item_by_index_using_limit(self): method test_get_item_by_index_using_skip (line 158) | def test_get_item_by_index_using_skip(self): method test_get_item_by_negative_index (line 173) | def test_get_item_by_negative_index(self): method test_get_item_by_key_using_invalid_options (line 182) | def test_get_item_by_key_using_invalid_options(self): method test_get_item_by_key (line 197) | def test_get_item_by_key(self): method test_get_item_by_missing_key (line 207) | def test_get_item_by_missing_key(self): method test_get_item_by_complex_key (line 216) | def test_get_item_by_complex_key(self): method test_get_item_by_integer_key (line 226) | def test_get_item_by_integer_key(self): method test_get_item_by_missing_integer_key (line 236) | def test_get_item_by_missing_integer_key(self): method test_get_item_slice_no_start_no_stop (line 244) | def test_get_item_slice_no_start_no_stop(self): method test_get_all_items (line 255) | def test_get_all_items(self): method test_get_item_invalid_index_slice (line 265) | def test_get_item_invalid_index_slice(self): method test_get_item_index_slice_using_start_stop (line 291) | def test_get_item_index_slice_using_start_stop(self): method test_get_item_index_slice_using_start_only (line 323) | def test_get_item_index_slice_using_start_only(self): method test_get_item_index_slice_using_stop_only (line 351) | def test_get_item_index_slice_using_stop_only(self): method test_get_item_key_slice_using_invalid_options (line 385) | def test_get_item_key_slice_using_invalid_options(self): method test_get_item_invalid_key_slice (line 410) | def test_get_item_invalid_key_slice(self): method test_get_item_key_slice_using_start_stop (line 426) | def test_get_item_key_slice_using_start_stop(self): method test_get_item_key_slice_start_greater_than_stop (line 477) | def test_get_item_key_slice_start_greater_than_stop(self): method test_get_item_key_slice_using_start_only (line 489) | def test_get_item_key_slice_using_start_only(self): method test_get_item_key_slice_using_stop_only (line 519) | def test_get_item_key_slice_using_stop_only(self): method test_iteration_with_invalid_options (line 567) | def test_iteration_with_invalid_options(self): method test_iteration_invalid_page_size (line 577) | def test_iteration_invalid_page_size(self): method test_iteration_using_valid_page_size (line 592) | def test_iteration_using_valid_page_size(self): method test_iteration_using_default_page_size (line 618) | def test_iteration_using_default_page_size(self): method test_iteration_no_data (line 631) | def test_iteration_no_data(self): method test_iteration_integer_keys (line 638) | def test_iteration_integer_keys(self): method test_iteration_pagination (line 645) | def test_iteration_pagination(self): FILE: tests/unit/scheduler_tests.py class SchedulerTests (line 28) | class SchedulerTests(UnitTestDbBase): method setUp (line 30) | def setUp(self): method tearDown (line 37) | def tearDown(self): method test_scheduler_docs (line 44) | def test_scheduler_docs(self): method test_scheduler_doc (line 159) | def test_scheduler_doc(self): method test_scheduler_jobs (line 192) | def test_scheduler_jobs(self): FILE: tests/unit/security_document_tests.py class SecurityDocumentTests (line 32) | class SecurityDocumentTests(UnitTestDbBase): method setUp (line 37) | def setUp(self): method tearDown (line 45) | def tearDown(self): method test_constructor (line 52) | def test_constructor(self): method test_document_url (line 60) | def test_document_url(self): method test_json (line 70) | def test_json(self): method test_fetch (line 81) | def test_fetch(self): method test_save (line 89) | def test_save(self): method test_context_manager (line 101) | def test_context_manager(self): FILE: tests/unit/unit_t_db_base.py function skip_if_not_cookie_auth (line 73) | def skip_if_not_cookie_auth(f): function skip_if_iam (line 81) | def skip_if_iam(f): class UnitTestDbBase (line 88) | class UnitTestDbBase(unittest.TestCase): method setUpClass (line 94) | def setUpClass(cls): method tearDownClass (line 140) | def tearDownClass(cls): method setUp (line 171) | def setUp(self): method set_up_client (line 177) | def set_up_client(self, auto_connect=False, auto_renew=False, encoder=... method tearDown (line 250) | def tearDown(self): method db_set_up (line 256) | def db_set_up(self, partitioned=False): method db_tear_down (line 266) | def db_tear_down(self): method dbname (line 275) | def dbname(self, database_name='db'): method populate_db_with_documents (line 278) | def populate_db_with_documents(self, doc_count=100, **kwargs): method populate_db_with_partitioned_documents (line 286) | def populate_db_with_partitioned_documents(self, key_count, docs_per_p... method create_views (line 300) | def create_views(self): method create_search_index (line 345) | def create_search_index(self): method load_security_document_data (line 359) | def load_security_document_data(self): method create_db_updates (line 392) | def create_db_updates(self): method delete_db_updates (line 403) | def delete_db_updates(self): method is_couchdb_1x_version (line 412) | def is_couchdb_1x_version(self): FILE: tests/unit/view_execution_tests.py class QueryParmExecutionTests (line 26) | class QueryParmExecutionTests(UnitTestDbBase): method setUp (line 31) | def setUp(self): method tearDown (line 40) | def tearDown(self): method test_descending_true (line 47) | def test_descending_true(self): method test_descending_false (line 64) | def test_descending_false(self): method test_endkey_int (line 81) | def test_endkey_int(self): method test_endkey_str (line 104) | def test_endkey_str(self): method test_endkey_complex (line 123) | def test_endkey_complex(self): method test_endkey_docid (line 142) | def test_endkey_docid(self): method test_group_true (line 167) | def test_group_true(self): method test_group_false (line 185) | def test_group_false(self): method test_group_level (line 196) | def test_group_level(self): method test_include_docs_true (line 211) | def test_include_docs_true(self): method test_include_docs_false (line 238) | def test_include_docs_false(self): method test_inclusive_end_true (line 253) | def test_inclusive_end_true(self): method test_inclusive_end_false (line 270) | def test_inclusive_end_false(self): method test_key_int (line 287) | def test_key_int(self): method test_key_str (line 307) | def test_key_str(self): method test_key_complex (line 322) | def test_key_complex(self): method test_keys_int (line 337) | def test_keys_int(self): method test_keys_str (line 361) | def test_keys_str(self): method test_keys_complex (line 378) | def test_keys_complex(self): method test_limit (line 395) | def test_limit(self): method test_reduce_true (line 412) | def test_reduce_true(self): method test_reduce_false (line 423) | def test_reduce_false(self): method test_skip (line 446) | def test_skip(self): method test_stale_ok (line 463) | def test_stale_ok(self): method test_stale_update_after (line 476) | def test_stale_update_after(self): method test_stable_true (line 489) | def test_stable_true(self): method test_stable_update_lazy (line 503) | def test_stable_update_lazy(self): method test_stable_update_true (line 516) | def test_stable_update_true(self): method test_startkey_int (line 529) | def test_startkey_int(self): method test_startkey_str (line 552) | def test_startkey_str(self): method test_startkey_complex (line 571) | def test_startkey_complex(self): method test_startkey_docid (line 590) | def test_startkey_docid(self): FILE: tests/unit/view_tests.py class CodeTests (line 39) | class CodeTests(unittest.TestCase): method test_constructor (line 44) | def test_constructor(self): class CloudantViewExceptionTests (line 53) | class CloudantViewExceptionTests(unittest.TestCase): method test_raise_without_code (line 58) | def test_raise_without_code(self): method test_raise_using_invalid_code (line 66) | def test_raise_using_invalid_code(self): method test_raise_with_proper_code (line 74) | def test_raise_with_proper_code(self): class ViewTests (line 83) | class ViewTests(UnitTestDbBase): method setUp (line 88) | def setUp(self): method tearDown (line 95) | def tearDown(self): method test_constructor (line 102) | def test_constructor(self): method test_map_setter (line 133) | def test_map_setter(self): method test_map_getter (line 146) | def test_map_getter(self): method test_reduce_setter (line 157) | def test_reduce_setter(self): method test_reduce_getter (line 167) | def test_reduce_getter(self): method test_retrieve_view_url (line 178) | def test_retrieve_view_url(self): method test_get_view_callable_raw_json (line 189) | def test_get_view_callable_raw_json(self): method test_post_view_callable_raw_json (line 210) | def test_post_view_callable_raw_json(self): method test_post_view_callable_raw_json_multiple_params (line 234) | def test_post_view_callable_raw_json_multiple_params(self): method test_view_callable_view_result (line 258) | def test_view_callable_view_result(self): method test_view_callable_with_non_existing_view (line 280) | def test_view_callable_with_non_existing_view(self): method test_custom_result_context_manager (line 298) | def test_custom_result_context_manager(self): class QueryIndexViewTests (line 322) | class QueryIndexViewTests(unittest.TestCase): method setUp (line 329) | def setUp(self): method test_constructor (line 345) | def test_constructor(self): method test_map_getter (line 359) | def test_map_getter(self): method test_map_setter (line 369) | def test_map_setter(self): method test_map_setter_failure (line 380) | def test_map_setter_failure(self): method test_reduce_getter (line 393) | def test_reduce_getter(self): method test_reduce_setter (line 400) | def test_reduce_setter(self): method test_reduce_setter_failure (line 408) | def test_reduce_setter_failure(self): method test_callable_disabled (line 417) | def test_callable_disabled(self): method test_custom_result_disabled (line 431) | def test_custom_result_disabled(self):