From aab8651b3caf0d06446e750378ef227d1cdbaa35 Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Tue, 21 Jan 2020 12:48:42 +0100 Subject: Add get_spec_files method --- test/test_api.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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 -- cgit v1.2.3