Module Expr Str Assign NameStore Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Dict Str Str Num Str keyword Dict Str Str Str Str keyword Dict Str Str Num Str Assign TupleStore AttributeStore NameLoad attr NameStore Call AttributeLoad NameLoad attr keyword Dict Str Str Num Str keyword Dict Str Str Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A Base TestCase class for simple, single-shard db unittests.

Provides some pre-created objects for sub-classes.

  BaseTestCase: subclass this for all datastore object test cases
 N/A __author__ spencer@emailscrubbed.com (Spencer Kimball) N/A shutil N/A tempfile N/A time tornado options viewfinder.backend.base base_options viewfinder.backend.base secrets testing util viewfinder.backend.db local_client vf_schema viewfinder.backend.db.device Device viewfinder.backend.db.id_allocator IdAllocator viewfinder.backend.db.operation Operation viewfinder.backend.db.user User viewfinder.backend.op.op_manager OpManager viewfinder.backend.op.operation_map DB_OPERATION_MAP viewfinder.backend.storage object_store server_log DBBaseTestCase N/A N/A testing BaseTestCase N/A N/A Base testing class for datastore objects. This test case
  subclasses tornado's AsyncTestCase, which provides glue for
  asynchronous tests--an IOLoop object and a means of waiting for the
  completion of asynchronous events.
   setUp N/A N/A self N/A N/A N/A Sets up _client as a test emulation of DynamoDB. Creates the full
    database schema, a test user, and two devices (one for mobile, one
    for web-application).
     N/A N/A N/A options options localdb True N/A N/A N/A options options fileobjstore True N/A N/A N/A options options localdb_dir N/A N/A N/A N/A super DBBaseTestCase self setUp N/A N/A N/A options options localdb_dir N/A N/A self _client N/A N/A local_client LocalClient N/A vf_schema SCHEMA N/A N/A N/A object_store InitObjectStore temporary True N/A N/A self _temp_dir N/A N/A tempfile mkdtemp N/A N/A N/A N/A server_log LogBatchPersistor SetInstance N/A N/A server_log LogBatchPersistor backup_dir N/A self _temp_dir N/A N/A N/A IdAllocator ResetState N/A N/A N/A options options domain goviewfinder.com N/A N/A N/A secrets InitSecretsForTest N/A N/A util _TEST_TIME N/A N/A time time N/A N/A N/A self _RunAsync N/A N/A vf_schema SCHEMA VerifyOrCreate N/A self _client N/A N/A N/A OpManager SetInstance N/A OpManager op_map DB_OPERATION_MAP client N/A self _client scan_ops True N/A N/A N/A self _user N/A self _mobile_dev N/A N/A self _CreateUserAndDevice user_dict N/A user_id name 1 Spencer Kimball ident_dict N/A key authority Email:spencer.kimball@emailscrubbed.com Google device_dict N/A device_id name 1 Spencer's iPhone N/A N/A N/A self _user2 _ N/A N/A self _CreateUserAndDevice user_dict N/A user_id name 2 Peter Mattis ident_dict N/A key authority Email:peter.mattis@emailscrubbed.com Google device_dict None N/A tearDown N/A N/A self N/A N/A N/A Cleanup after test is complete. N/A N/A N/A self _RunAsync N/A N/A N/A N/A server_log LogBatchPersistor Instance close N/A N/A N/A self _RunAsync N/A N/A N/A OpManager Instance Drain N/A N/A N/A shutil rmtree N/A self _temp_dir N/A N/A N/A N/A super DBBaseTestCase self tearDown N/A N/A N/A self assertIs N/A N/A N/A Operation GetCurrent operation_id None N/A UpdateDBObject N/A N/A self cls N/A db_dict N/A N/A Update (or create if it doesn't exist) a DB object. Returns the
    object.
     N/A o N/A N/A cls CreateFromKeywords db_dict N/A N/A N/A self _RunAsync N/A o Update N/A self _client N/A o N/A _CreateUserAndDevice N/A N/A self user_dict ident_dict device_dict N/A None N/A N/A Creates a new, registered user from the fields in "user_dict". If "device_dict" is
    defined, then creates a new device from those fields.

    Returns a tuple containing the new user and device (if "device_dict" was given).
     N/A webapp_dev_id N/A N/A self _RunAsync N/A N/A Device _allocator NextId N/A self _client N/A N/A user identity N/A N/A self _RunAsync N/A User CreateProspective N/A self _client N/A user_dict N/A user_id webapp_dev_id N/A ident_dict N/A key N/A util _TEST_TIME N/A user N/A N/A self _RunAsync N/A User Register N/A self _client user_dict ident_dict N/A util _TEST_TIME rewrite_contacts True N/A N/A device_dict None N/A N/A device N/A N/A self _RunAsync N/A Device Register N/A self _client N/A user user_id device_dict is_first True N/A N/A device None N/A N/A user device N/A N/A