Add unit test for BaseTransformer 29/28229/1
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 7 Feb 2017 14:30:20 +0000 (22:30 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Tue, 7 Feb 2017 14:30:20 +0000 (22:30 +0800)
Change-Id: Ia379af759d9442f5b53f5052682e6218acef8a1b
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
tests/unit/collector/transformer/__init__.py [new file with mode: 0644]
tests/unit/collector/transformer/base_test.py [new file with mode: 0644]

diff --git a/tests/unit/collector/transformer/__init__.py b/tests/unit/collector/transformer/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/unit/collector/transformer/base_test.py b/tests/unit/collector/transformer/base_test.py
new file mode 100644 (file)
index 0000000..45c1a18
--- /dev/null
@@ -0,0 +1,15 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+from qtip.collector.transformer.base import BaseTransformer
+
+
+def test_base_transformer():
+    bt = BaseTransformer()
+    assert isinstance(bt, BaseTransformer)