Module Expr Str ImportFrom alias alias 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 ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Str Str Str NameLoad TupleLoad Str ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Str Str Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return AttributeLoad NameLoad attr decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str keyword ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Num NameLoad Dict Call NameLoad Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert UnaryOpNot AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Call AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults body If SubscriptLoad NameLoad Index Str body Expr Yield Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpMult BinOpDiv BinOpSub Num Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpMult BinOpDiv BinOpSub Num Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If NameLoad body For NameStore NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse For NameStore NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword Str
N/A N/A Tests for the album art fetchers. __future__ division absolute_import print_function N/A os N/A shutil N/A responses mock patch test _common test._common unittest beetsplug fetchart beets.autotag AlbumInfo AlbumMatch beets config beets library beets importer beets logging beets util beets.util.artresizer ArtResizer WEBPROXY beets.util confit N/A logger N/A N/A logging getLogger beets.test_art UseThePlugin N/A N/A _common TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super UseThePlugin self setUp N/A N/A self plugin N/A N/A fetchart FetchArtPlugin N/A N/A FetchImageTest N/A UseThePlugin N/A N/A URL http://example.com run N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super FetchImageTest self run args kwargs N/A N/A responses activate mock_response N/A N/A self content_type N/A N/A N/A N/A N/A responses add N/A responses GET N/A self URL content_type content_type N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super FetchImageTest self setUp N/A N/A self dpath N/A N/A N/A os path join N/A self temp_dir arttest N/A N/A self source N/A N/A fetchart RemoteArtSource logger N/A N/A self plugin config N/A N/A self extra N/A maxwidth 0 N/A test_invalid_type_returns_none N/A N/A self N/A N/A N/A N/A N/A self mock_response image/watercolour N/A candidate N/A N/A fetchart Candidate logger url N/A self URL N/A N/A N/A N/A self source fetch_image candidate N/A self extra N/A N/A N/A self assertEqual N/A candidate path None N/A test_jpeg_type_returns_path N/A N/A self N/A N/A N/A N/A N/A self mock_response image/jpeg N/A candidate N/A N/A fetchart Candidate logger url N/A self URL N/A N/A N/A N/A self source fetch_image candidate N/A self extra N/A N/A N/A self assertNotEqual N/A candidate path None N/A N/A FSArtTest N/A UseThePlugin N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super FSArtTest self setUp N/A N/A self dpath N/A N/A N/A os path join N/A self temp_dir arttest N/A N/A N/A os mkdir N/A self dpath N/A N/A self source N/A N/A fetchart FileSystem logger N/A N/A self plugin config N/A N/A self extra N/A cautious cover_names paths False N/A art N/A N/A self dpath N/A test_finds_jpg_in_directory N/A N/A self N/A N/A N/A N/A N/A _common touch N/A N/A N/A os path join N/A self dpath a.jpg N/A candidate N/A next N/A N/A N/A self source get None N/A self extra N/A N/A N/A self assertEqual N/A candidate path N/A N/A N/A os path join N/A self dpath a.jpg N/A test_appropriately_named_file_takes_precedence N/A N/A self N/A N/A N/A N/A N/A _common touch N/A N/A N/A os path join N/A self dpath a.jpg N/A N/A N/A _common touch N/A N/A N/A os path join N/A self dpath art.jpg N/A candidate N/A next N/A N/A N/A self source get None N/A self extra N/A N/A N/A self assertEqual N/A candidate path N/A N/A N/A os path join N/A self dpath art.jpg N/A test_non_image_file_not_identified N/A N/A self N/A N/A N/A N/A N/A _common touch N/A N/A N/A os path join N/A self dpath a.txt N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next N/A N/A N/A self source get None N/A self extra N/A test_cautious_skips_fallback N/A N/A self N/A N/A N/A N/A N/A _common touch N/A N/A N/A os path join N/A self dpath a.jpg N/A N/A N/A self extra N/A cautious True N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next N/A N/A N/A self source get None N/A self extra N/A test_empty_dir N/A N/A self N/A N/A N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next N/A N/A N/A self source get None N/A self extra N/A test_precedence_amongst_correct_files N/A N/A self N/A N/A N/A images N/A front-cover.jpg front.jpg back.jpg N/A paths N/A N/A N/A N/A os path join N/A self dpath i N/A i images N/A p paths N/A N/A N/A N/A _common touch p N/A N/A N/A self extra N/A cover_names N/A cover front back N/A candidates N/A N/A candidate path N/A candidate N/A N/A N/A self source get None N/A self extra N/A N/A N/A self assertEqual candidates paths N/A N/A CombinedTest N/A UseThePlugin N/A N/A ASIN xxxx N/A MBID releaseid N/A AMAZON_URL N/A N/A http://images.amazon.com/images/P/{0}.01.LZZZZZZZ.jpg format ASIN N/A AAO_URL N/A N/A http://www.albumart.org/index_detail.php?asin={0} format ASIN N/A CAA_URL N/A N/A http://coverartarchive.org/release/{0}/front format MBID setUp N/A N/A self N/A N/A N/A N/A N/A N/A super CombinedTest self setUp N/A N/A self dpath N/A N/A N/A os path join N/A self temp_dir arttest N/A N/A N/A os mkdir N/A self dpath N/A run N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super CombinedTest self run args kwargs N/A N/A responses activate mock_response N/A N/A self url content_type N/A image/jpeg N/A N/A N/A N/A responses add N/A responses GET url content_type content_type N/A test_main_interface_returns_amazon_art N/A N/A self N/A N/A N/A N/A N/A self mock_response N/A self AMAZON_URL N/A album N/A N/A _common Bag asin N/A self ASIN N/A candidate N/A N/A N/A self plugin art_for_album album None N/A N/A N/A self assertIsNotNone candidate N/A test_main_interface_returns_none_for_missing_asin_and_path N/A N/A self N/A N/A N/A album N/A N/A _common Bag N/A candidate N/A N/A N/A self plugin art_for_album album None N/A N/A N/A self assertIsNone candidate N/A test_main_interface_gives_precedence_to_fs_art N/A N/A self N/A N/A N/A N/A N/A _common touch N/A N/A N/A os path join N/A self dpath art.jpg N/A N/A N/A self mock_response N/A self AMAZON_URL N/A album N/A N/A _common Bag asin N/A self ASIN N/A candidate N/A N/A N/A self plugin art_for_album album N/A N/A self dpath N/A N/A N/A self assertIsNotNone candidate N/A N/A N/A self assertEqual N/A candidate path N/A N/A N/A os path join N/A self dpath art.jpg N/A test_main_interface_falls_back_to_amazon N/A N/A self N/A N/A N/A N/A N/A self mock_response N/A self AMAZON_URL N/A album N/A N/A _common Bag asin N/A self ASIN N/A candidate N/A N/A N/A self plugin art_for_album album N/A N/A self dpath N/A N/A N/A self assertIsNotNone candidate N/A N/A N/A self assertFalse N/A N/A N/A candidate path startswith N/A self dpath N/A test_main_interface_tries_amazon_before_aao N/A N/A self N/A N/A N/A N/A N/A self mock_response N/A self AMAZON_URL N/A album N/A N/A _common Bag asin N/A self ASIN N/A N/A N/A N/A self plugin art_for_album album N/A N/A self dpath N/A N/A N/A self assertEqual N/A len N/A responses calls 1 N/A N/A N/A self assertEqual N/A N/A N/A N/A responses calls N/A 0 request url N/A self AMAZON_URL N/A test_main_interface_falls_back_to_aao N/A N/A self N/A N/A N/A N/A N/A self mock_response N/A self AMAZON_URL content_type text/html N/A album N/A N/A _common Bag asin N/A self ASIN N/A N/A N/A N/A self plugin art_for_album album N/A N/A self dpath N/A N/A N/A self assertEqual N/A N/A N/A N/A responses calls N/A -1 request url N/A self AAO_URL N/A test_main_interface_uses_caa_when_mbid_available N/A N/A self N/A N/A N/A N/A N/A self mock_response N/A self CAA_URL N/A album N/A N/A _common Bag mb_albumid N/A self MBID asin N/A self ASIN N/A candidate N/A N/A N/A self plugin art_for_album album None N/A N/A N/A self assertIsNotNone candidate N/A N/A N/A self assertEqual N/A len N/A responses calls 1 N/A N/A N/A self assertEqual N/A N/A N/A N/A responses calls N/A 0 request url N/A self CAA_URL N/A test_local_only_does_not_access_network N/A N/A self N/A N/A N/A album N/A N/A _common Bag mb_albumid N/A self MBID asin N/A self ASIN N/A N/A N/A N/A self plugin art_for_album album None local_only True N/A N/A N/A self assertEqual N/A len N/A responses calls 0 N/A test_local_only_gets_fs_image N/A N/A self N/A N/A N/A N/A N/A _common touch N/A N/A N/A os path join N/A self dpath art.jpg N/A album N/A N/A _common Bag mb_albumid N/A self MBID asin N/A self ASIN N/A candidate N/A N/A N/A self plugin art_for_album album N/A N/A self dpath local_only True N/A N/A N/A self assertIsNotNone candidate N/A N/A N/A self assertEqual N/A candidate path N/A N/A N/A os path join N/A self dpath art.jpg N/A N/A N/A self assertEqual N/A len N/A responses calls 0 N/A N/A AAOTest N/A UseThePlugin N/A N/A ASIN xxxx N/A AAO_URL N/A N/A http://www.albumart.org/index_detail.php?asin={0} format ASIN setUp N/A N/A self N/A N/A N/A N/A N/A N/A super AAOTest self setUp N/A N/A self source N/A N/A fetchart AlbumArtOrg logger N/A N/A self plugin config N/A N/A self extra N/A dict N/A run N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super AAOTest self run args kwargs N/A N/A responses activate mock_response N/A N/A self url body N/A N/A N/A N/A N/A responses add N/A responses GET url body body content_type text/html match_querystring True N/A test_aao_scraper_finds_image N/A N/A self N/A N/A N/A body 
        <br />
        <a href="TARGET_URL" title="View larger image"
           class="thickbox" style="color: #7E9DA2; text-decoration:none;">
        <img src="http://www.albumart.org/images/zoom-icon.jpg"
       alt="View larger image" width="17" height="15"  border="0"/></a>
         N/A N/A N/A self mock_response N/A self AAO_URL body N/A album N/A N/A _common Bag asin N/A self ASIN N/A candidate N/A next N/A N/A N/A self source get album N/A self extra N/A N/A N/A self assertEqual N/A candidate url TARGET_URL N/A test_aao_scraper_returns_no_result_when_no_image_present N/A N/A self N/A N/A N/A N/A N/A self mock_response N/A self AAO_URL blah blah N/A album N/A N/A _common Bag asin N/A self ASIN N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next N/A N/A N/A self source get album N/A self extra N/A N/A GoogleImageTest N/A UseThePlugin N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super GoogleImageTest self setUp N/A N/A self source N/A N/A fetchart GoogleImages logger N/A N/A self plugin config N/A N/A self extra N/A dict N/A run N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super GoogleImageTest self run args kwargs N/A N/A responses activate mock_response N/A N/A self url json N/A N/A N/A N/A N/A responses add N/A responses GET url body json content_type application/json N/A test_google_art_finds_image N/A N/A self N/A N/A N/A album N/A N/A _common Bag albumartist some artist album some album N/A json {"items": [{"link": "url_to_the_image"}]} N/A N/A N/A self mock_response N/A N/A fetchart GoogleImages URL json N/A candidate N/A next N/A N/A N/A self source get album N/A self extra N/A N/A N/A self assertEqual N/A candidate url url_to_the_image N/A test_google_art_returns_no_result_when_error_received N/A N/A self N/A N/A N/A album N/A N/A _common Bag albumartist some artist album some album N/A json {"error": {"errors": [{"reason": "some reason"}]}} N/A N/A N/A self mock_response N/A N/A fetchart GoogleImages URL json N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next N/A N/A N/A self source get album N/A self extra N/A test_google_art_returns_no_result_with_malformed_response N/A N/A self N/A N/A N/A album N/A N/A _common Bag albumartist some artist album some album N/A json bla blup N/A N/A N/A self mock_response N/A N/A fetchart GoogleImages URL json N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next N/A N/A N/A self source get album N/A self extra N/A N/A FanartTVTest N/A UseThePlugin N/A N/A RESPONSE_MULTIPLE {
        "name": "artistname",
        "mbid_id": "artistid",
        "albums": {
            "thereleasegroupid": {
                "albumcover": [
                    {
                        "id": "24",
                        "url": "http://example.com/1.jpg",
                        "likes": "0"
                    },
                    {
                        "id": "42",
                        "url": "http://example.com/2.jpg",
                        "likes": "0"
                    },
                    {
                        "id": "23",
                        "url": "http://example.com/3.jpg",
                        "likes": "0"
                    }
                ],
                "cdart": [
                    {
                        "id": "123",
                        "url": "http://example.com/4.jpg",
                        "likes": "0",
                        "disc": "1",
                        "size": "1000"
                    }
                ]
            }
        }
    } N/A RESPONSE_NO_ART {
        "name": "artistname",
        "mbid_id": "artistid",
        "albums": {
            "thereleasegroupid": {
               "cdart": [
                    {
                        "id": "123",
                        "url": "http://example.com/4.jpg",
                        "likes": "0",
                        "disc": "1",
                        "size": "1000"
                    }
                ]
            }
        }
    } N/A RESPONSE_ERROR {
        "status": "error",
        "error message": "the error message"
    } N/A RESPONSE_MALFORMED bla blup setUp N/A N/A self N/A N/A N/A N/A N/A N/A super FanartTVTest self setUp N/A N/A self source N/A N/A fetchart FanartTV logger N/A N/A self plugin config N/A N/A self extra N/A dict N/A run N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super FanartTVTest self run args kwargs N/A N/A responses activate mock_response N/A N/A self url json N/A N/A N/A N/A N/A responses add N/A responses GET url body json content_type application/json N/A test_fanarttv_finds_image N/A N/A self N/A N/A N/A album N/A N/A _common Bag mb_releasegroupid thereleasegroupid N/A N/A N/A self mock_response N/A N/A N/A fetchart FanartTV API_ALBUMS thereleasegroupid N/A self RESPONSE_MULTIPLE N/A candidate N/A next N/A N/A N/A self source get album N/A self extra N/A N/A N/A self assertEqual N/A candidate url http://example.com/1.jpg N/A test_fanarttv_returns_no_result_when_error_received N/A N/A self N/A N/A N/A album N/A N/A _common Bag mb_releasegroupid thereleasegroupid N/A N/A N/A self mock_response N/A N/A N/A fetchart FanartTV API_ALBUMS thereleasegroupid N/A self RESPONSE_ERROR N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next N/A N/A N/A self source get album N/A self extra N/A test_fanarttv_returns_no_result_with_malformed_response N/A N/A self N/A N/A N/A album N/A N/A _common Bag mb_releasegroupid thereleasegroupid N/A N/A N/A self mock_response N/A N/A N/A fetchart FanartTV API_ALBUMS thereleasegroupid N/A self RESPONSE_MALFORMED N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next N/A N/A N/A self source get album N/A self extra N/A test_fanarttv_only_other_images N/A N/A self N/A N/A N/A album N/A N/A _common Bag mb_releasegroupid thereleasegroupid N/A N/A N/A self mock_response N/A N/A N/A fetchart FanartTV API_ALBUMS thereleasegroupid N/A self RESPONSE_NO_ART N/A N/A N/A self assertRaises StopIteration N/A N/A N/A next N/A N/A N/A self source get album N/A self extra N/A N/A ArtImporterTest N/A UseThePlugin N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ArtImporterTest self setUp N/A N/A self art_file N/A N/A N/A os path join N/A self temp_dir tmpcover.jpg N/A N/A N/A _common touch N/A self art_file N/A N/A self old_afa N/A N/A self plugin art_for_album N/A N/A self afa_response N/A N/A fetchart Candidate logger path N/A self art_file art_for_album N/A N/A i p local_only N/A False N/A N/A N/A self afa_response N/A N/A N/A N/A self plugin art_for_album art_for_album N/A N/A self libpath N/A N/A N/A os path join N/A self temp_dir tmplib.blb N/A N/A self libdir N/A N/A N/A os path join N/A self temp_dir tmplib N/A N/A N/A os mkdir N/A self libdir N/A N/A N/A os mkdir N/A N/A N/A os path join N/A self libdir album N/A itempath N/A N/A N/A os path join N/A self libdir album test.mp3 N/A N/A N/A shutil copyfile N/A N/A N/A os path join N/A _common RSRC full.mp3 itempath N/A N/A self lib N/A N/A library Library N/A self libpath N/A N/A self i N/A N/A _common item N/A N/A N/A self i path itempath N/A N/A self album N/A N/A N/A self lib add_album N/A N/A self i N/A N/A N/A N/A N/A N/A self lib _connection commit N/A N/A self session N/A N/A _common import_session N/A self lib N/A N/A self task N/A N/A importer ImportTask None None N/A N/A self i N/A N/A N/A self task is_album True N/A N/A N/A self task album N/A self album N/A info N/A AlbumInfo album some album album_id albumid artist some artist artist_id artistid tracks N/A N/A N/A N/A N/A self task set_choice N/A AlbumMatch 0 info N/A N/A set N/A set N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self lib _connection close N/A N/A N/A N/A super ArtImporterTest self tearDown N/A N/A N/A self plugin art_for_album N/A self old_afa N/A _fetch_art N/A N/A self should_exist N/A N/A N/A Execute the fetch_art coroutine for the task and return the
        album's resulting artpath. ``should_exist`` specifies whether to
        assert that art path was set (to the correct value) or or that
        the path was not set.
         N/A N/A N/A N/A self plugin fetch_art N/A self session N/A self task N/A N/A N/A N/A self plugin assign_art N/A self session N/A self task N/A artpath N/A N/A N/A N/A N/A self lib albums N/A 0 artpath N/A should_exist N/A N/A N/A N/A self assertEqual artpath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A self i path cover.jpg N/A N/A N/A self assertExists artpath N/A N/A N/A N/A self assertEqual artpath None N/A artpath N/A test_fetch_art N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self lib albums N/A 0 artpath N/A N/A N/A self _fetch_art True N/A test_art_not_found N/A N/A self N/A N/A N/A N/A self afa_response None N/A N/A N/A self _fetch_art False N/A test_no_art_for_singleton N/A N/A self N/A N/A N/A N/A N/A self task is_album False N/A N/A N/A self _fetch_art False N/A test_leave_original_file_in_place N/A N/A self N/A N/A N/A N/A N/A self _fetch_art True N/A N/A N/A self assertExists N/A self art_file N/A test_delete_original_file N/A N/A self N/A N/A N/A N/A N/A self plugin src_removed True N/A N/A N/A self _fetch_art True N/A N/A N/A self assertNotExists N/A self art_file N/A test_do_not_delete_original_if_already_in_place N/A N/A self N/A N/A N/A artdest N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A self i path cover.jpg N/A N/A N/A shutil copyfile N/A self art_file artdest N/A N/A self afa_response N/A N/A fetchart Candidate logger path artdest N/A N/A N/A self _fetch_art True N/A test_fetch_art_if_imported_file_deleted N/A N/A self N/A N/A N/A N/A N/A self _fetch_art True N/A N/A N/A util remove N/A N/A self album artpath N/A N/A N/A N/A self plugin batch_fetch_art N/A self lib N/A N/A N/A self lib albums force False N/A N/A N/A self assertExists N/A N/A self album artpath N/A N/A N/A N/A _common slow_test ArtForAlbumTest N/A UseThePlugin N/A N/A  Tests that fetchart.art_for_album respects the size
    configuration (e.g., minwidth, enforce_ratio)
     N/A IMG_225x225 N/A N/A N/A os path join N/A _common RSRC abbey.jpg N/A IMG_348x348 N/A N/A N/A os path join N/A _common RSRC abbey-different.jpg N/A IMG_500x490 N/A N/A N/A os path join N/A _common RSRC abbey-similar.jpg setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ArtForAlbumTest self setUp N/A N/A self old_fs_source_get N/A N/A fetchart FileSystem get fs_source_get N/A N/A _self album extra N/A N/A N/A N/A extra N/A paths N/A N/A N/A N/A N/A fetchart Candidate logger path N/A self image_file N/A N/A N/A N/A fetchart FileSystem get fs_source_get N/A N/A self album N/A N/A _common Bag N/A tearDown N/A N/A self N/A N/A N/A N/A N/A fetchart FileSystem get N/A self old_fs_source_get N/A N/A N/A N/A super ArtForAlbumTest self tearDown N/A _assertImageIsValidArt N/A N/A self image_file should_exist N/A N/A N/A N/A N/A self assertExists image_file N/A N/A self image_file image_file N/A candidate N/A N/A N/A self plugin art_for_album N/A self album N/A True N/A should_exist N/A N/A N/A N/A self assertNotEqual candidate None N/A N/A N/A self assertEqual N/A candidate path N/A self image_file N/A N/A N/A self assertExists N/A candidate path N/A N/A N/A N/A self assertIsNone candidate N/A _assertImageResized N/A N/A self image_file should_resize N/A N/A N/A N/A self image_file image_file N/A N/A N/A patch object N/A ArtResizer shared resize mock_resize N/A N/A N/A N/A N/A self plugin art_for_album N/A self album N/A True N/A N/A N/A self assertEqual N/A mock_resize called should_resize N/A _require_backend N/A N/A self N/A N/A N/A Skip the test if the art resizer doesn't have ImageMagick or
        PIL (so comparisons and measurements are unavailable).
         N/A N/A N/A N/A N/A ArtResizer shared method N/A 0 WEBPROXY N/A N/A N/A N/A self skipTest ArtResizer has no local imaging backend available N/A test_respect_minwidth N/A N/A self N/A N/A N/A N/A N/A self _require_backend N/A N/A N/A self plugin minwidth 300 N/A N/A N/A self _assertImageIsValidArt N/A self IMG_225x225 False N/A N/A N/A self _assertImageIsValidArt N/A self IMG_348x348 True N/A test_respect_enforce_ratio_yes N/A N/A self N/A N/A N/A N/A N/A self _require_backend N/A N/A N/A self plugin enforce_ratio True N/A N/A N/A self _assertImageIsValidArt N/A self IMG_500x490 False N/A N/A N/A self _assertImageIsValidArt N/A self IMG_225x225 True N/A test_respect_enforce_ratio_no N/A N/A self N/A N/A N/A N/A N/A self plugin enforce_ratio False N/A N/A N/A self _assertImageIsValidArt N/A self IMG_500x490 True N/A test_respect_enforce_ratio_px_above N/A N/A self N/A N/A N/A N/A N/A self plugin enforce_ratio True N/A N/A N/A self plugin margin_px 5 N/A N/A N/A self _assertImageIsValidArt N/A self IMG_500x490 False N/A test_respect_enforce_ratio_px_below N/A N/A self N/A N/A N/A N/A N/A self plugin enforce_ratio True N/A N/A N/A self plugin margin_px 15 N/A N/A N/A self _assertImageIsValidArt N/A self IMG_500x490 True N/A test_respect_enforce_ratio_percent_above N/A N/A self N/A N/A N/A N/A N/A self plugin enforce_ratio True N/A N/A N/A self plugin margin_percent N/A N/A N/A 500 490 500 0.5 N/A N/A N/A self _assertImageIsValidArt N/A self IMG_500x490 False N/A test_respect_enforce_ratio_percent_below N/A N/A self N/A N/A N/A N/A N/A self plugin enforce_ratio True N/A N/A N/A self plugin margin_percent N/A N/A N/A 500 490 500 1.5 N/A N/A N/A self _assertImageIsValidArt N/A self IMG_500x490 True N/A test_resize_if_necessary N/A N/A self N/A N/A N/A N/A N/A self _require_backend N/A N/A N/A self plugin maxwidth 300 N/A N/A N/A self _assertImageResized N/A self IMG_225x225 False N/A N/A N/A self _assertImageResized N/A self IMG_348x348 True N/A N/A DeprecatedConfigTest N/A N/A _common TestCase N/A N/A While refactoring the plugin, the remote_priority option was deprecated,
    and a new codepath should translate its effect. Check that it actually does
    so.
     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super DeprecatedConfigTest self setUp N/A N/A N/A config N/A fetchart N/A remote_priority True N/A N/A self plugin N/A N/A fetchart FetchArtPlugin N/A test_moves_filesystem_to_end N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A type N/A N/A N/A self plugin sources N/A -1 N/A fetchart FileSystem N/A N/A EnforceRatioConfigTest N/A N/A _common TestCase N/A N/A Throw some data at the regexes. _load_with_config N/A N/A self values should_raise N/A N/A N/A should_raise N/A N/A v values N/A N/A N/A N/A config N/A fetchart N/A enforce_ratio v N/A N/A N/A self assertRaises N/A confit ConfigValueError N/A N/A N/A N/A fetchart FetchArtPlugin N/A N/A v values N/A N/A N/A N/A config N/A fetchart N/A enforce_ratio v N/A N/A N/A fetchart FetchArtPlugin N/A test_px N/A N/A self N/A N/A N/A N/A N/A self _load_with_config N/A N/A 0px 4px 12px 123px split False N/A N/A N/A self _load_with_config N/A N/A 00px stuff5px split True N/A test_percent N/A N/A self N/A N/A N/A N/A N/A self _load_with_config N/A N/A 0% 0.00% 5.1% 5% 100% split False N/A N/A N/A self _load_with_config N/A N/A 00% 1.234% foo5% 100.1% split True N/A N/A suite N/A N/A N/A N/A N/A N/A N/A N/A N/A unittest TestLoader loadTestsFromName __name__ N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main defaultTest suite