diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-06-27 06:48:07 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-06-27 06:48:08 +0000 |
| commit | 01d183da274280b16122e55b20355c0a469a5db7 (patch) | |
| tree | 845bad52135b249df97aaa478a5552fa12339280 /kolla/tests | |
| parent | dafd1c8c2e7dfd65567e533100cc77a104f0eb31 (diff) | |
| parent | 929d84b143e723735817c88efc5df8d6239c6991 (diff) | |
| download | kolla-01d183da274280b16122e55b20355c0a469a5db7.tar.gz kolla-01d183da274280b16122e55b20355c0a469a5db7.zip | |
Merge "Stop using a global logger for all the things"
Diffstat (limited to 'kolla/tests')
| -rw-r--r-- | kolla/tests/test_build.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py index 98ffebf99..92962913a 100644 --- a/kolla/tests/test_build.py +++ b/kolla/tests/test_build.py @@ -10,7 +10,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import copy import fixtures import itertools import mock @@ -31,7 +30,7 @@ class TasksTest(base.TestCase): def setUp(self): super(TasksTest, self).setUp() - self.image = copy.deepcopy(FAKE_IMAGE) + self.image = FAKE_IMAGE.copy() # NOTE(jeffrey4l): use a real, temporary dir self.image.path = self.useFixture(fixtures.TempDir()).path @@ -129,7 +128,6 @@ class TasksTest(base.TestCase): self.assertIsNone(get_result) self.assertEqual(self.image.status, build.STATUS_ERROR) - self.assertEqual(str(self.image.logs), str()) mock_get.assert_called_once_with(self.image.source['source'], timeout=120) @@ -142,7 +140,7 @@ class KollaWorkerTest(base.TestCase): def setUp(self): super(KollaWorkerTest, self).setUp() - image = copy.deepcopy(FAKE_IMAGE) + image = FAKE_IMAGE.copy() image.status = None self.images = [image] |
