summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_api.py b/test/test_api.py
index e5a82df..6992492 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -120,3 +120,11 @@ def test_get_groups():
groups = api.get_groups(prj)
print groups
assert groups == []
+
+
+def test_get_spec_files():
+ for specfile in api.get_spec_files(prj, pkg):
+ assert 'Name:' in specfile
+ assert 'Summary:' in specfile
+ assert '%description' in specfile
+ assert '%setup' in specfile