diff options
| author | Scott Bahling <sbahling@suse.de> | 2016-02-21 13:03:30 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.de> | 2016-02-21 13:03:30 +0100 |
| commit | cfdcaa52f656cfc80f9f2b021c262f4ea6663fda (patch) | |
| tree | 77c99226d234982d9c6873dbfb0d1a557d7dcc08 /test/test_api.py | |
| parent | 5cf8d0a0b03659790cd7c34d1b5bea350bb41d1a (diff) | |
| download | obsapi-cfdcaa52f656cfc80f9f2b021c262f4ea6663fda.tar.gz obsapi-cfdcaa52f656cfc80f9f2b021c262f4ea6663fda.tar.xz obsapi-cfdcaa52f656cfc80f9f2b021c262f4ea6663fda.zip | |
Add test for get_binary_fileinfo
Diffstat (limited to 'test/test_api.py')
| -rw-r--r-- | test/test_api.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_api.py b/test/test_api.py index 5d3ae90..2e78b62 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -63,3 +63,17 @@ def test_source_info(): assert sinfo.vrev == '2' assert sinfo.srcmd5 == '7054c47fb2ebde13fc62ee64d0a3b1bc' assert sinfo.verifymd5 == '7054c47fb2ebde13fc62ee64d0a3b1bc' + + +def test_get_binary_fileinfo(): + binary = 'suse-hello-kmp-default-1.0_k3.12.28_4-2.1.x86_64.rpm' + bfinfo = api.get_binary_fileinfo(prj, pkg, repo, arch, binary) + assert bfinfo.filename == binary + assert bfinfo.size == '25869' + assert bfinfo.mtime == '1429457162' + assert bfinfo.arch == 'x86_64' + assert bfinfo.version == '1.0_k3.12.28_4' + assert bfinfo.release == '2.1' + assert bfinfo.summary == 'Sample Kernel Module Package' + assert bfinfo.description == 'This package contains the hello.ko module.' + assert bfinfo.source == 'suse-hello' |
