Index: native_client_sdk/src/build_tools/tests/update_manifest_test.py |
diff --git a/native_client_sdk/src/build_tools/tests/update_manifest_test.py b/native_client_sdk/src/build_tools/tests/update_manifest_test.py |
index 1022323a8c0a570d1c1ce4b73a45bb03f4fa20a9..0e33207f2569d82354ef65cb1f921930054fc2fb 100755 |
--- a/native_client_sdk/src/build_tools/tests/update_manifest_test.py |
+++ b/native_client_sdk/src/build_tools/tests/update_manifest_test.py |
@@ -62,6 +62,7 @@ def GetHTTPHandler(path, length=None): |
class FakeOptions(object): |
''' Just a place holder for options ''' |
def __init__(self): |
+ self.archive_id = None |
self.bundle_desc_url = None |
self.bundle_name = None |
self.bundle_version = None |
@@ -338,6 +339,18 @@ class TestUpdateManifest(unittest.TestCase): |
manifest_object.HandleBundles() |
manifest_object.UpdateWithOptions() |
+ # Verify that the bundle can be found via the --archive-id option. |
+ options = FakeOptions() |
+ options.archive_id = 'pepper_1_0' |
+ options.bundle_name = 'pepper_phony' |
+ options.bundle_version = -1 |
+ options.bundle_revision = -1 |
+ options.stability = 'dev' |
+ options.recommended = 'no' |
+ manifest_object = update_manifest.UpdateSDKManifestFile(options) |
+ manifest_object.HandleBundles() |
+ manifest_object.UpdateWithOptions() |
+ |
def main(): |
suite = unittest.TestLoader().loadTestsFromTestCase(TestUpdateManifest) |