'Verify that asset file is saving with actual name, No hash tag should be appended with the asset filename.'

def test_asset_file_saving_with_actual_name(self):

    CertificateTemplateAsset(description='test    description', asset=SimpleUploadedFile('picture1.jpg', 'these    are    the    file    contents!')).save()
    certificate_template_asset = CertificateTemplateAsset.objects.get(id=1)
    self.assertEqual(certificate_template_asset.asset, 'certificate_template_assets/1/picture1.jpg')
    certificate_template_asset.asset = SimpleUploadedFile('picture1.jpg', 'file    contents')
    certificate_template_asset.save()
    self.assertEqual(certificate_template_asset.asset, 'certificate_template_assets/1/picture1.jpg')
    certificate_template_asset.asset = SimpleUploadedFile('picture2.jpg', 'file    contents')
    certificate_template_asset.save()
    certificate_template_asset = CertificateTemplateAsset.objects.get(id=1)
    self.assertEqual(certificate_template_asset.asset, 'certificate_template_assets/1/picture2.jpg')
