Module Expr Str Assign NameStore Str Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Num Num Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign NameStore BinOpAdd Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Index Str Index Num Num orelse Assign NameStore Num Assign NameStore Call NameLoad BinOpSub NameLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Dict Str Str Dict Str BinOpMod Str NameLoad Assign NameStore Dict Str Str NameLoad Num If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareLt BinOpAdd NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Dict Str Str Dict Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Dict Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Return Call AttributeLoad NameLoad attr NameLoad Num keyword Dict Str Str keyword Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Num keyword NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr Str Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad Num NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad Num NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Str NameLoad Num NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Dict Str Str Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list decorator_list
N/A N/A Tests for DBObject.
 N/A __author__ andy@emailscrubbed.com (Andy Kimball) N/A json N/A mock N/A time N/A unittest cStringIO StringIO functools partial tornado httpclient viewfinder.backend.base.testing MockAsyncHTTPClient viewfinder.backend.db dynamodb_client vf_schema viewfinder.backend.db.db_client DBKey viewfinder.backend.db.episode Episode viewfinder.backend.db.photo Photo viewfinder.backend.db.post Post viewfinder.backend.db.test.base_test DBBaseTestCase DBObjectTestCase N/A DBBaseTestCase N/A testRangeQuery N/A N/A self N/A N/A N/A Test DBRangeObject.RangeQuery. _MakeResponse N/A N/A max_index request N/A N/A N/A request_dict N/A N/A json loads N/A request body N/A limit N/A min N/A N/A request_dict get Limit 2 2 N/A is_count N/A N/A request_dict get Count N/A N/A ExclusiveStartKey request_dict N/A N/A start_index N/A N/A int N/A N/A N/A N/A N/A request_dict N/A ExclusiveStartKey N/A RangeKeyElement N/A S N/A S N/A -1 1 N/A N/A start_index 0 N/A count N/A min N/A max_index start_index limit N/A items N/A N/A i N/A xrange start_index N/A start_index count N/A N/A N/A N/A items append N/A ei sk N/A S e0 N/A S N/A p%d i N/A response_dict N/A Count ConsumedCapacityUnits count 0.5 N/A N/A is_count N/A N/A N/A response_dict N/A Items items N/A N/A N/A start_index count max_index N/A N/A N/A response_dict N/A LastEvaluatedKey N/A HashKeyElement RangeKeyElement N/A S N/A N/A items N/A -1 N/A ei N/A S N/A N/A items N/A -1 N/A sk N/A N/A N/A httpclient HTTPResponse request 200 headers N/A Content-Type application/json buffer N/A StringIO N/A N/A json dumps response_dict N/A N/A client N/A N/A dynamodb_client DynamoDBClient schema N/A vf_schema SCHEMA N/A N/A N/A self _RunAsync N/A client GetItem N/A vf_schema TEST_RENAME N/A DBKey 1 1 attributes None must_exist False N/A N/A N/A mock patch tornado.httpclient.AsyncHTTPClient N/A MockAsyncHTTPClient mock_client N/A N/A N/A N/A mock_client map https://dynamodb.us-east-1.amazonaws.com N/A partial _MakeResponse 5 N/A posts N/A N/A self _RunAsync N/A Post RangeQuery client e0 None None None N/A N/A N/A self assertEqual N/A len posts 2 N/A posts N/A N/A self _RunAsync N/A Post RangeQuery client e0 None 2 None N/A N/A N/A self assertEqual N/A len posts 2 N/A posts N/A N/A self _RunAsync N/A Post RangeQuery client e0 None 5 None N/A N/A N/A self assertEqual N/A len posts 5 N/A posts N/A N/A self _RunAsync N/A Post RangeQuery client e0 None 7 None N/A N/A N/A self assertEqual N/A len posts 5 N/A count N/A N/A self _RunAsync N/A Post RangeQuery client e0 None None None count True N/A N/A N/A self assertEqual count 2 N/A count N/A N/A self _RunAsync N/A Post RangeQuery client e0 None 2 None count True N/A N/A N/A self assertEqual count 2 N/A count N/A N/A self _RunAsync N/A Post RangeQuery client e0 None 5 None count True N/A N/A N/A self assertEqual count 5 N/A count N/A N/A self _RunAsync N/A Post RangeQuery client e0 None 7 None count True N/A N/A N/A self assertEqual count 5 N/A N/A N/A unittest skip needs aws credentials testBatchQuery N/A N/A self N/A N/A N/A Test DBObject.BatchQuery. N/A keys N/A N/A i N/A xrange 3 N/A N/A photo_id N/A N/A Photo ConstructPhotoId N/A N/A time time N/A N/A self _mobile_dev device_id 1 N/A episode_id N/A N/A Episode ConstructEpisodeId N/A N/A time time N/A N/A self _mobile_dev device_id 1 N/A ph_dict N/A photo_id user_id episode_id photo_id N/A N/A self _user user_id episode_id N/A N/A N/A self _RunAsync N/A Photo CreateNew N/A self _client ph_dict N/A N/A N/A keys append N/A DBKey photo_id None N/A N/A N/A keys append N/A DBKey unk-photo None N/A photos N/A N/A self _RunAsync N/A Photo BatchQuery N/A self _client keys None must_exist False N/A N/A N/A self assertEqual N/A len photos 4 N/A i N/A xrange 3 N/A N/A N/A N/A self assertEqual N/A N/A N/A photos N/A i GetKey N/A keys N/A i N/A N/A N/A self assertIsNone N/A photos N/A 3 N/A N/A