Module Import alias ImportFrom alias identifier ImportFrom alias alias Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr Str Num attr NameLoad Expr Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Num attr NameLoad Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A os focus.plugin.modules sites plugins focus_unittest FocusTestCase MockTask N/A _HOST_FILE_DATA #<ip-address>	<hostname.domain.org>	<hostname>
127.0.0.1	localhost.localdomain	localhost
::1		localhost.localdomain	localhost
 N/A _BLKD_HOST_FILE_DATA #<ip-address>	<hostname.domain.org>	<hostname>
127.0.0.1	localhost.localdomain	localhost
::1		localhost.localdomain	localhost
127.0.0.1	google.com	# FOCUS
127.0.0.1	m.google.com	# FOCUS
127.0.0.1	m.twitter.com	# FOCUS
127.0.0.1	mobile.google.com	# FOCUS
127.0.0.1	mobile.twitter.com	# FOCUS
127.0.0.1	twitter.com	# FOCUS
127.0.0.1	www.google.com	# FOCUS
127.0.0.1	www.twitter.com	# FOCUS
 TestSiteBlock N/A FocusTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestSiteBlock self setUp N/A N/A N/A self setup_dir N/A N/A self task N/A MockTask base_dir N/A self test_dir make_task_dir True N/A N/A self plugin N/A N/A plugins SiteBlock N/A N/A N/A self mock_run_root N/A self plugin N/A N/A N/A self plugin hosts_file N/A N/A N/A os path join N/A N/A self task task_dir focus_test_hosts N/A N/A N/A N/A open N/A N/A self plugin hosts_file w write _HOST_FILE_DATA N/A N/A self backup_hosts_file N/A N/A N/A os path join N/A N/A self task task_dir .hosts.bak N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self clean_paths N/A N/A self plugin hosts_file N/A self backup_hosts_file N/A N/A self plugin None N/A N/A self task None N/A N/A N/A N/A super TestSiteBlock self tearDown N/A testOptionSingleValue__parse_option N/A N/A self N/A N/A N/A  SiteBlock.parse_option: option value includes additional
            subdomains for value provided.
             N/A N/A N/A N/A self plugin parse_option block sites google.com N/A N/A N/A self assertEqual N/A N/A self plugin domains N/A set N/A google.com m.google.com www.google.com mobile.google.com N/A testDedupeOptionValue__parse_option N/A N/A self N/A N/A N/A  SiteBlock.parse_option: duplicate values for options should
            be removed.
             N/A N/A N/A N/A self plugin parse_option block sites google.com N/A N/A N/A N/A self plugin parse_option block sites google.com N/A N/A N/A self assertEqual N/A N/A self plugin domains N/A set N/A google.com m.google.com www.google.com mobile.google.com N/A testMultiValueOption__parse_option N/A N/A self N/A N/A N/A  SiteBlock.parse_option: options support multiple values.
             N/A N/A N/A N/A self plugin parse_option block sites www.reddit.com google.com twitter.com N/A N/A N/A self assertEqual N/A N/A self plugin domains N/A set N/A reddit.com m.reddit.com www.reddit.com mobile.reddit.com google.com m.google.com www.google.com mobile.google.com twitter.com m.twitter.com www.twitter.com mobile.twitter.com N/A test__on_taskrun N/A N/A self N/A N/A N/A  SiteBlock.on_taskrun: adds domain blocks to hosts file.
             N/A domains N/A google.com m.google.com www.google.com mobile.google.com twitter.com m.twitter.com www.twitter.com mobile.twitter.com N/A N/A N/A self plugin domains N/A set domains N/A N/A N/A N/A self plugin on_taskrun N/A self task N/A N/A N/A self assertEqual N/A N/A N/A open N/A N/A self plugin hosts_file r read _BLKD_HOST_FILE_DATA N/A test__on_taskend N/A N/A self N/A N/A N/A  SiteBlock.on_taskend: removes domain blocks from hosts file.
             N/A N/A N/A N/A open N/A self backup_hosts_file w 0 write _HOST_FILE_DATA N/A N/A N/A N/A open N/A N/A self plugin hosts_file w 0 write _BLKD_HOST_FILE_DATA N/A domains N/A google.com m.google.com www.google.com mobile.google.com twitter.com m.twitter.com www.twitter.com mobile.twitter.com N/A N/A N/A self plugin domains N/A set domains N/A N/A N/A N/A self plugin on_taskend N/A self task N/A N/A N/A self assertEqual N/A N/A N/A open N/A N/A self plugin hosts_file r read _HOST_FILE_DATA N/A N/A N/A self assertFalse N/A N/A N/A os path isfile N/A self backup_hosts_file N/A N/A