initial code repo
[stor4nfv.git] / src / ceph / src / brag / server / ceph_brag / tests / __init__.py
diff --git a/src/ceph/src/brag/server/ceph_brag/tests/__init__.py b/src/ceph/src/brag/server/ceph_brag/tests/__init__.py
new file mode 100644 (file)
index 0000000..78ea527
--- /dev/null
@@ -0,0 +1,22 @@
+import os
+from unittest import TestCase
+from pecan import set_config
+from pecan.testing import load_test_app
+
+__all__ = ['FunctionalTest']
+
+
+class FunctionalTest(TestCase):
+    """
+    Used for functional tests where you need to test your
+    literal application and its integration with the framework.
+    """
+
+    def setUp(self):
+        self.app = load_test_app(os.path.join(
+            os.path.dirname(__file__),
+            'config.py'
+        ))
+
+    def tearDown(self):
+        set_config({}, overwrite=True)