Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call NameLoad keyword Str Call NameLoad Str Lambda arguments args NameParam NameParam defaults NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Call AttributeLoad NameLoad attr keyword Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call NameLoad keyword Str Call NameLoad Str Lambda arguments args NameParam NameParam defaults NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list Call NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword SubscriptLoad NameLoad Index Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Str keyword Str decorator_list Call NameLoad decorator_list
N/A N/A 
This software is licensed under the Apache 2 license, quoted below.

Copyright 2014 Crystalnix Limited

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
 django test django.core.files.uploadedfile SimpleUploadedFile mock patch omaha.models Application Channel Platform Version Action EVENT_DICT_CHOICES omaha.models version_upload_to omaha.factories ApplicationFactory ChannelFactory PlatformFactory VersionFactory omaha.tests.utils temporary_media_root ApplicationModelTest N/A N/A test SimpleTestCase N/A test_factory N/A N/A self N/A N/A N/A app N/A N/A ApplicationFactory create N/A N/A N/A self assertTrue N/A N/A N/A Application objects get id N/A app id N/A N/A ChannelModelTest N/A N/A test TestCase N/A test_factory N/A N/A self N/A N/A N/A channel N/A N/A ChannelFactory create N/A N/A N/A self assertTrue N/A N/A N/A Channel objects get id N/A channel id N/A N/A PlatformModelTest N/A N/A test TestCase N/A test_factory N/A N/A self N/A N/A N/A platform N/A N/A PlatformFactory create N/A N/A N/A self assertTrue N/A N/A N/A Platform objects get id N/A platform id N/A N/A VersionModelTest N/A N/A test TestCase N/A test_version_upload_to N/A N/A self N/A N/A N/A version N/A N/A VersionFactory create file N/A SimpleUploadedFile ./chrome_installer.exe False N/A N/A N/A self assertEqual N/A version_upload_to version chrome_installer.exe N/A N/A build/{}/{}/{}/{}/chrome_installer.exe format N/A N/A version app name N/A N/A version channel name N/A N/A version platform name N/A version version N/A N/A version file name N/A N/A temporary_media_root test_factory N/A N/A self N/A N/A N/A version N/A N/A VersionFactory create file N/A SimpleUploadedFile ./chrome_installer.exe False N/A N/A N/A self assertTrue N/A N/A N/A Version objects get id N/A version id N/A N/A temporary_media_root test_property N/A N/A self N/A N/A N/A version N/A N/A VersionFactory create file N/A SimpleUploadedFile ./chrome_installer.exe N/A N/A N/A self assertEqual N/A version file_absolute_url http://cache.pack.google.com/edgedl/chrome/install/782.112/chrome_installer.exe N/A N/A N/A self assertEqual N/A version file_package_name chrome_installer.exe N/A N/A N/A self assertEqual N/A version file_url http://cache.pack.google.com/edgedl/chrome/install/782.112/ N/A N/A temporary_media_root MEDIA_URL http://cache.pack.google.com/edgedl/chrome/install/782.112/ N/A patch omaha.models.version_upload_to N/A N/A N/A o f N/A f test_property_default_storage N/A N/A self N/A N/A N/A version N/A N/A VersionFactory create file N/A SimpleUploadedFile ./chrome_installer.exe N/A _url N/A http://example.com/static/media/build/%s/%s/%s/37.0.2062.124/chrome_installer.exe N/A N/A N/A version app name N/A N/A version channel name N/A N/A version platform name N/A N/A N/A self assertEqual N/A version file_absolute_url _url N/A N/A N/A self assertEqual N/A version file_package_name chrome_installer.exe N/A _url N/A http://example.com/static/media/build/%s/%s/%s/37.0.2062.124/ N/A N/A N/A version app name N/A N/A version channel name N/A N/A version platform name N/A N/A N/A self assertEqual N/A version file_url _url N/A N/A temporary_media_root N/A N/A test override_settings OMAHA_URL_PREFIX http://example.com test_property_s3_meta_data N/A N/A self N/A N/A N/A version N/A N/A VersionFactory create file N/A SimpleUploadedFile ./chrome_installer.exe N/A N/A N/A self assertEqual N/A version file_package_name chrome_installer.exe N/A N/A N/A self assertEqual N/A version file_url http://cache.pack.google.com/edgedl/chrome/install/782.112/ N/A N/A N/A self assertEqual N/A version size 123 N/A N/A temporary_media_root MEDIA_URL http://cache.pack.google.com/edgedl/chrome/install/782.112/ N/A patch omaha.models.version_upload_to N/A N/A N/A o f N/A f test_pre_save_callbac N/A N/A self N/A N/A N/A version N/A N/A VersionFactory create file N/A SimpleUploadedFile ./chrome_installer.exe N/A N/A N/A self assertEqual N/A N/A version file size 0 N/A N/A N/A self assertEqual N/A version file_hash 2jmj7l5rSw0yVb/vlWAYkK/YBwk= N/A N/A temporary_media_root N/A ActionModelTest N/A N/A test TestCase N/A test_get_attributes N/A N/A self N/A N/A N/A ver N/A N/A VersionFactory create file N/A SimpleUploadedFile ./chrome_installer.exe False N/A action N/A Action version ver arguments --do-not-launch-chrome event N/A EVENT_DICT_CHOICES N/A install run chrome_installer.exe N/A N/A N/A self assertDictEqual N/A N/A action get_attributes N/A dict arguments --do-not-launch-chrome run chrome_installer.exe N/A action N/A Action version ver terminateallbrowsers True event N/A EVENT_DICT_CHOICES N/A postinstall other N/A dict version 13.0.782.112 onsuccess exitsilentlyonlaunchcmd N/A N/A N/A self assertDictEqual N/A N/A action get_attributes N/A dict terminateallbrowsers true version 13.0.782.112 onsuccess exitsilentlyonlaunchcmd N/A N/A temporary_media_root N/A