def test_generated_file_path(self): # Make an empty generated file g = os.path.join(self.test_dir, 'generated') rel_path = 'a/b/generated' with open(g, 'wb') as f: pass expected = 's3:bucket:{}/{}:'.format(EMPTY_SHA512, rel_path) self.assertEqual(expected, symbolstore.get_generated_file_s3_path(g, rel_path, 'bucket'))
def test_generated_file_path(self): # Make an empty generated file g = os.path.join(self.test_dir, "generated") rel_path = "a/b/generated" with open(g, "wb"): pass expected = "s3:bucket:{}/{}:".format(EMPTY_SHA512, rel_path) self.assertEqual( expected, symbolstore.get_generated_file_s3_path(g, rel_path, "bucket"))