ó Â>Sc@s*ddlZddlZddlZddlZddlZy>ejjdƒriejddƒjZnddl mZWn.e k rªdej dGHej dƒnXdej fd „ƒYZy>ejd d gd ejd ejƒdkrejƒnWn!ek r%dej dGHnXdS(iÿÿÿÿNtAPPORT_TEST_LOCALtsbackends/packaging_rpm.py(timpls&%s: Skipping, rpm module not availableitTcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCs#tjdƒ}|j|gƒdS(sget_dependencies().tbashN(Rtget_dependenciestassertNotEqual(tselftdeps((s//usr/share/apport/testsuite/test_backend_rpm.pyttest_get_dependenciesscCs'tjdƒ}|j|ddƒdS(s_get_header().s alsa-utilstnN(Rt _get_headert assertEqual(Rthdr((s//usr/share/apport/testsuite/test_backend_rpm.pyttest_get_headerscCsJtjddƒ}|jt|ƒdƒ|j|ddjdƒƒdS(s_get_headers_by_tag().t basenamess /bin/bashiiR RN(Rt_get_headers_by_tagR tlent assertTruet startswith(Rt headersByTag((s//usr/share/apport/testsuite/test_backend_rpm.pyttest_get_headers_by_tagscCs3tjƒ}|j|dƒ|jd|kƒdS(sget_system_architecture().Rs N(Rtget_system_architectureRR(Rtarch((s//usr/share/apport/testsuite/test_backend_rpm.pyttest_get_system_architecture"s cCsBtjdƒ}|j|dƒtjdƒ}|j|dƒdS(sget_version().Rs alsa-utilsN(Rt get_versionRtNone(Rtver((s//usr/share/apport/testsuite/test_backend_rpm.pyttest_get_version*s(t__name__t __module__R RRRR(((s//usr/share/apport/testsuite/test_backend_rpm.pyR s     trpms--helptstdouttstderrs%s: Skipping, rpm not available(tunittesttimpt subprocesstsystostenvirontgett load_sourceRtapport.packaging_implt ImportErrortargvtexittTestCaseRtcalltPIPEtmaintOSError(((s//usr/share/apport/testsuite/test_backend_rpm.pyts< '