diff options
| author | Scott Bahling <sbahling@suse.de> | 2016-03-03 02:19:13 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.de> | 2016-03-03 02:19:13 +0100 |
| commit | 3ea5bd07c23838b1a96357089e8173a094dfaed1 (patch) | |
| tree | 0ee4b228a35a37c6d120e85cc2b7cc6ebacaa8fc /test/test_api.py | |
| parent | 224e2ce1d43045e567a1c782830a24432531aa8b (diff) | |
| download | obsapi-3ea5bd07c23838b1a96357089e8173a094dfaed1.tar.gz obsapi-3ea5bd07c23838b1a96357089e8173a094dfaed1.tar.xz obsapi-3ea5bd07c23838b1a96357089e8173a094dfaed1.zip | |
Add formatter class and extend FileInfo class
Diffstat (limited to 'test/test_api.py')
| -rw-r--r-- | test/test_api.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_api.py b/test/test_api.py index 2e78b62..832c865 100644 --- a/test/test_api.py +++ b/test/test_api.py @@ -68,6 +68,7 @@ def test_source_info(): 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) + print(bfinfo) assert bfinfo.filename == binary assert bfinfo.size == '25869' assert bfinfo.mtime == '1429457162' @@ -77,3 +78,6 @@ def test_get_binary_fileinfo(): assert bfinfo.summary == 'Sample Kernel Module Package' assert bfinfo.description == 'This package contains the hello.ko module.' assert bfinfo.source == 'suse-hello' + binary = '_statistics' + bfinfo = api.get_binary_fileinfo(prj, pkg, repo, arch, binary) + print(bfinfo) |
