2 from basetest
import BaseTest
6 sys
.path
.insert(0, '..')
7 from zeroinstall
.injector
.arch
import get_architecture
9 class TestArch(BaseTest
):
15 BaseTest
.tearDown(self
)
17 def testDefault(self
):
18 arch
= get_architecture(None, None)
22 arch
= get_architecture('MacOSX', 'ppc')
23 assert ('Darwin' in arch
.os_ranks
)
25 def testMachine(self
):
26 arch
= get_architecture('Linux', 'i686')
27 assert ('i386' in arch
.machine_ranks
)
29 if __name__
== '__main__':