diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-24 13:57:34 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-24 14:05:44 +0000 |
commit | 8b9840d0723af7c95946e9da995cd41e39f957b7 (patch) | |
tree | 891464cf3af1ac2c0133a01888ec3eb7730fb3a4 /morphlib | |
parent | d9ddb3e21085ca09bab695bc3f063a6cd00f2da0 (diff) | |
download | morph-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.py | 8 |
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, |