summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Orling <timothy.t.orling@linux.intel.com>2016-10-05 11:07:02 -0700
committerTim Orling <timothy.t.orling@linux.intel.com>2016-10-05 11:07:02 -0700
commit45c831f1399bb8199e2ec297ffe98c91a1b960f3 (patch)
tree2134f02c57ecf80eaf42a372ad6429dbc727dcf5
parentfa77a7d7dcdbe30a44070172694b90e4641e77f0 (diff)
downloadepel6-testing-container-45c831f1399bb8199e2ec297ffe98c91a1b960f3.tar.gz
epel6-testing-container-45c831f1399bb8199e2ec297ffe98c91a1b960f3.tar.xz
epel6-testing-container-45c831f1399bb8199e2ec297ffe98c91a1b960f3.zip
test_epel-rpm-macros-6-14.py: compare to nil macro
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
-rw-r--r--tests/test_epel-rpm-macros-6-14.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/test_epel-rpm-macros-6-14.py b/tests/test_epel-rpm-macros-6-14.py
index 85adf8d..d4c1df7 100644
--- a/tests/test_epel-rpm-macros-6-14.py
+++ b/tests/test_epel-rpm-macros-6-14.py
@@ -32,8 +32,14 @@ class TestPython3Stubs:
output = Popen(cmd, stdout=PIPE).communicate()[0]
return output
- def test_py3_build_macro(self, py3_build_macro):
- assert py3_build_macro != '\n'
+ @pytest.fixture
+ def nil_macro(self):
+ cmd = shlex.split("rpm -E %{nil}")
+ output = Popen(cmd, stdout=PIPE).communicate()[0]
+ return output
+
+ def test_py3_build_macro(self, py3_build_macro, nil_macro):
+ assert py3_build_macro != nil_macro
- def test_py3_install_macro(self, py3_install_macro):
- assert py3_install_macro != '\n'
+ def test_py3_install_macro(self, py3_install_macro, nil_macro):
+ assert py3_install_macro != nil_macro