summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-24 13:57:34 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-24 14:05:44 +0000
commit8b9840d0723af7c95946e9da995cd41e39f957b7 (patch)
tree891464cf3af1ac2c0133a01888ec3eb7730fb3a4 /morphlib
parentd9ddb3e21085ca09bab695bc3f063a6cd00f2da0 (diff)
downloadmorph-8b9840d0723af7c95946e9da995cd41e39f957b7.tar.gz
Apply the test changes of the previous commit to all related tests.
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/sourcemanager_tests.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/morphlib/sourcemanager_tests.py b/morphlib/sourcemanager_tests.py
index 7dc77b11..56691e79 100644
--- a/morphlib/sourcemanager_tests.py
+++ b/morphlib/sourcemanager_tests.py
@@ -148,7 +148,9 @@ class SourceManagerTests(unittest.TestCase):
s = morphlib.sourcemanager.SourceManager(app, tempdir)
def wget(url, filename):
- shutil.copy(filename, s.cache_dir)
+ bundle_file = os.path.join(self.temprepodir,
+ os.path.basename(filename))
+ shutil.copy(bundle_file, s.cache_dir)
s._wget = wget
self.assertRaises(morphlib.sourcemanager.RepositoryFetchError,
@@ -165,7 +167,9 @@ class SourceManagerTests(unittest.TestCase):
s = morphlib.sourcemanager.SourceManager(app, tempdir)
def wget(url, filename):
- shutil.copy(filename, s.cache_dir)
+ bundle_file = os.path.join(self.temprepodir,
+ os.path.basename(filename))
+ shutil.copy(bundle_file, s.cache_dir)
s._wget = wget
self.assertRaises(morphlib.sourcemanager.RepositoryFetchError,