Пример #1
0
 def test_get_with_incorrect_checksum(self):
     with self.assertRaises(ValueError):
         Download.get('https://github.com/USCiLab/cereal/archive/v1.2.0.tar.gz',
                      'fd65224cf628119fe1d85cbca63214c4f6a82e75',
                      'destination'
                      )
     self.assertFalse(os.path.exists('destination'))
Пример #2
0
 def test_get_with_incorrect_checksum(self):
     with self.assertRaises(ValueError):
         Download.get(
             'https://github.com/USCiLab/cereal/archive/v1.2.0.tar.gz',
             'fd65224cf628119fe1d85cbca63214c4f6a82e75', 'destination')
     self.assertFalse(os.path.exists('destination'))
Пример #3
0
 def test_get(self):
     Download.get('https://github.com/USCiLab/cereal/archive/v1.1.2.tar.gz',
                  'fd65224cf628119fe1d85cbca63214c4f6a82e75', 'destination')
     self.assertTrue(os.path.exists('destination'))
Пример #4
0
 def test_get(self):
     Download.get('https://github.com/USCiLab/cereal/archive/v1.1.2.tar.gz',
                  'fd65224cf628119fe1d85cbca63214c4f6a82e75',
                  'destination'
                  )
     self.assertTrue(os.path.exists('destination'))