Exemple #1
0
 def test_md5(self):
     line = ('https://repo.io/osx-64/pip-7.1-0.tar.bz2'
             '#2e61152595f223038c811cd479d0cea1')
     m = url_pat.match(line)
     self.assertEqual(m.group('baseurl'), 'https://repo.io/osx-64/')
     self.assertEqual(m.group('fn'), 'pip-7.1-0.tar.bz2')
     self.assertEqual(m.group('md5'), '2e61152595f223038c811cd479d0cea1')
Exemple #2
0
 def test_md5(self):
     line = ('https://repo.io/osx-64/pip-7.1-0.tar.bz2'
             '#2e61152595f223038c811cd479d0cea1')
     m = url_pat.match(line)
     self.assertEqual(m.group('baseurl'), 'https://repo.io/osx-64/')
     self.assertEqual(m.group('fn'), 'pip-7.1-0.tar.bz2')
     self.assertEqual(m.group('md5'),
                      '2e61152595f223038c811cd479d0cea1')
Exemple #3
0
 def test_invalid(self):
     m = url_pat.match('pip-7.1-0.tar.bz2')
     self.assertEqual(m, None)
Exemple #4
0
 def test_1(self):
     line = 'https://repo.io/osx-64/pip-7.1-0.tar.bz2'
     m = url_pat.match(line)
     self.assertEqual(m.group('baseurl'), 'https://repo.io/osx-64/')
     self.assertEqual(m.group('fn'), 'pip-7.1-0.tar.bz2')
     self.assertEqual(m.group('md5'), None)
Exemple #5
0
 def test_invalid(self):
     m = url_pat.match('pip-7.1-0.tar.bz2')
     self.assertEqual(m, None)
Exemple #6
0
 def test_1(self):
     line = 'https://repo.io/osx-64/pip-7.1-0.tar.bz2'
     m = url_pat.match(line)
     self.assertEqual(m.group('baseurl'), 'https://repo.io/osx-64/')
     self.assertEqual(m.group('fn'), 'pip-7.1-0.tar.bz2')
     self.assertEqual(m.group('md5'), None)