Beispiel #1
0
 def test_create_datafile_hashes_fail(self):
     with self.assertRaises(FileNotFoundError):
         sra.create_datafile_hashes(
             os.path.join(utils.TAB_DATA_DIR, 'BII-S-7'), ['1EU'])
Beispiel #2
0
 def test_create_datafile_hashes_fail(self):
     with self.assertRaises(FileNotFoundError):
         sra.create_datafile_hashes(os.path.join(utils.TAB_DATA_DIR, 'BII-S-7'), ['1EU'])
Beispiel #3
0
 def test_create_datafile_hashes_success(self):
     datafilehashes = sra.create_datafile_hashes(
         os.path.join(utils.TAB_DATA_DIR, 'BII-S-7'), ['1EU.sff'])
     self.assertEqual(datafilehashes['1EU.sff'],
                      'd41d8cd98f00b204e9800998ecf8427e')  # empty file hash
Beispiel #4
0
 def test_create_datafile_hashes_success(self):
     datafilehashes = sra.create_datafile_hashes(os.path.join(utils.TAB_DATA_DIR, 'BII-S-7'), ['1EU.sff'])
     self.assertEqual(datafilehashes['1EU.sff'], 'd41d8cd98f00b204e9800998ecf8427e')  # hash is for empty file