예제 #1
0
 def testIntelMacTiger(self):
     self.failUnlessEqual(
         updates.matchDownloadUrl(self.TEST_DICT, 'osx-intel', '10.5-Leopard'),
         '<mac Leopard intel url>'
     )
예제 #2
0
 def testPPCMacTiger(self):
     self.failUnlessEqual(
         updates.matchDownloadUrl(self.TEST_DICT, 'osx-ppc', '10.4-Tiger'),
         '<mac ppc url>'
     )
예제 #3
0
 def testPPCMacLeopard(self):
     self.failUnlessEqual(
         updates.matchDownloadUrl(self.TEST_DICT, 'osx-ppc', '10.5-Leopard'),
         '<mac ppc url>'
     )
예제 #4
0
 def testLinux(self):
     self.failUnlessEqual(
         updates.matchDownloadUrl(self.TEST_DICT, 'linux',
                                  'Ubuntu-6.06-dapper'),
         '<generic linux url>'
     )
예제 #5
0
 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>')
예제 #7
0
 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>')
 def testNoValue(self):
     self.failUnless(updates.matchDownloadUrl({}) is None)