def test_is_sync_not_needed(self):
        mocked_key1 = mock.Mock()
        mocked_key1.etag = '"de3a2ccff42d63dc60c6955634d122da"'

        mocked_file_path = sandbox + '/a.txt'

        with open(mocked_file_path, 'wb') as f:
            f.write('mocked file')

        self.assertEquals('de3a2ccff42d63dc60c6955634d122da', s3concurrent._get_md5(mocked_file_path))

        download = s3concurrent.is_sync_needed(mocked_key1, mocked_file_path)
        self.assertFalse(download)
 def test_get_md5(self):
     self.assertEquals(
         '032b6af31d2d1be87ff63adb423d270f',
         s3concurrent._get_md5(self.temp_filename)
     )