def testIntelMacTiger(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'osx-intel', '10.5-Leopard'), '<mac Leopard intel url>' )
def testPPCMacTiger(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'osx-ppc', '10.4-Tiger'), '<mac ppc url>' )
def testPPCMacLeopard(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'osx-ppc', '10.5-Leopard'), '<mac ppc url>' )
def testLinux(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'linux', 'Ubuntu-6.06-dapper'), '<generic linux url>' )
def testWindows(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'win', '5.1-WinNT'), '<generic windows url>' )
def testIntelMacTiger(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'osx-intel', '10.5-Leopard'), '<mac Leopard intel url>')
def testNoValue(self): self.failUnless(updates.matchDownloadUrl({}) is None)
def testPPCMacLeopard(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'osx-ppc', '10.5-Leopard'), '<mac ppc url>')
def testPPCMacTiger(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'osx-ppc', '10.4-Tiger'), '<mac ppc url>')
def testWindows(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'win', '5.1-WinNT'), '<generic windows url>')
def testLinux(self): self.failUnlessEqual( updates.matchDownloadUrl(self.TEST_DICT, 'linux', 'Ubuntu-6.06-dapper'), '<generic linux url>')