summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorScott Bahling <sbahling@suse.com>2020-01-21 12:48:42 +0100
committerScott Bahling <sbahling@suse.com>2020-01-21 12:48:42 +0100
commitaab8651b3caf0d06446e750378ef227d1cdbaa35 (patch)
tree2a2360193413ee8c8765add9132bac7801d4be9c /test
parent21a29a084ace36023b266a922b8bbd79136bf7c9 (diff)
downloadobsapi-aab8651b3caf0d06446e750378ef227d1cdbaa35.tar.gz
obsapi-aab8651b3caf0d06446e750378ef227d1cdbaa35.tar.xz
obsapi-aab8651b3caf0d06446e750378ef227d1cdbaa35.zip
Add get_spec_files method
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