Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: tools/isolate/isolate_test.py

Issue 10019014: Convert isolate.py to exclusively use .isolate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not read as binary Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/isolate/isolate_smoke_test.py ('k') | tools/isolate/merge_isolate.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/isolate/isolate_test.py
diff --git a/tools/isolate/isolate_test.py b/tools/isolate/isolate_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..3e5eac986f084d8b5b5a7bd33a55fff18a736b0a
--- /dev/null
+++ b/tools/isolate/isolate_test.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import unittest
+
+import isolate
+
+
+class Isolate(unittest.TestCase):
+ def test_load_empty(self):
+ content = "{}"
+ variables = {}
+ command, infiles, read_only = isolate.load_isolate(
+ content, variables, self.fail)
+ self.assertEquals([], command)
+ self.assertEquals([], infiles)
+ self.assertEquals(None, read_only)
+
+
+if __name__ == '__main__':
+ unittest.main()
« no previous file with comments | « tools/isolate/isolate_smoke_test.py ('k') | tools/isolate/merge_isolate.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698