summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/__init__.py
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2017-10-23 14:46:12 -0600
committerChad Smith <chad.smith@canonical.com>2017-10-23 14:46:12 -0600
commita7f478aafa570abde940037014fabcb0eab16502 (patch)
treed838e40b26684f33b3b05c24ead267e28bb1b5a3 /tests/cloud_tests/testcases/__init__.py
parent5443ede5e90c0be56f25ac729c5f341cdb4ad31c (diff)
parent17a15f9e0ae78e4fc4e24fab0caebdf78f06ef66 (diff)
downloadvyos-cloud-init-a7f478aafa570abde940037014fabcb0eab16502.tar.gz
vyos-cloud-init-a7f478aafa570abde940037014fabcb0eab16502.zip
merge from master at 17.1-25-g17a15f9e
Diffstat (limited to 'tests/cloud_tests/testcases/__init__.py')
-rw-r--r--tests/cloud_tests/testcases/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cloud_tests/testcases/__init__.py b/tests/cloud_tests/testcases/__init__.py
index 47217ce6..a29a0928 100644
--- a/tests/cloud_tests/testcases/__init__.py
+++ b/tests/cloud_tests/testcases/__init__.py
@@ -5,6 +5,7 @@
import importlib
import inspect
import unittest
+from unittest.util import strclass
from tests.cloud_tests import config
from tests.cloud_tests.testcases.base import CloudTestCase as base_test
@@ -37,6 +38,12 @@ def get_suite(test_name, data, conf):
class tmp(test_class):
+ _realclass = test_class
+
+ def __str__(self):
+ return "%s (%s)" % (self._testMethodName,
+ strclass(self._realclass))
+
@classmethod
def setUpClass(cls):
cls.data = data