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

Unified Diff: lib/naclports/tests/test_source_package.py

Issue 1422073003: Fix crash in source_package.py (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 2 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 | « lib/naclports/source_package.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/naclports/tests/test_source_package.py
diff --git a/lib/naclports/tests/test_source_package.py b/lib/naclports/tests/test_source_package.py
index 3f79ac8cdbefecdef7ed4d545d3ca242ee41268e..447e54977ccffdd4a36f4007dc783b970f5b571d 100644
--- a/lib/naclports/tests/test_source_package.py
+++ b/lib/naclports/tests/test_source_package.py
@@ -97,6 +97,12 @@ class TestSourcePackage(common.NaclportsTest):
self.assertEqual(len(pkgs), 1)
self.assertEqual(pkgs[0].NAME, 'foo')
+ def testGetInstalledPackage(self):
+ root = self.CreateTestPackage('foo')
+ pkg = source_package.SourcePackage(root)
+ with self.assertRaisesRegexp(error.Error, 'package not installed: foo'):
+ pkg.GetInstalledPackage()
+
def testGetBuildLocation(self):
root = self.CreateTestPackage('foo')
pkg = source_package.SourcePackage(root)
« no previous file with comments | « lib/naclports/source_package.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698