From 3ea5bd07c23838b1a96357089e8173a094dfaed1 Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Thu, 3 Mar 2016 02:19:13 +0100 Subject: Add formatter class and extend FileInfo class --- test/test_api.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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) -- cgit v1.2.3