def test_craft_artifact_put_headers(): assert _craft_artifact_put_headers('text/plain') == { 'Content-Type': 'text/plain' } assert _craft_artifact_put_headers('text/plain', encoding=None) == { 'Content-Type': 'text/plain' } assert _craft_artifact_put_headers('text/plain', 'gzip') == { 'Content-Type': 'text/plain', 'Content-Encoding': 'gzip' }
def test_craft_artifact_put_headers(): assert _craft_artifact_put_headers("text/plain") == { "Content-Type": "text/plain" } assert _craft_artifact_put_headers("text/plain", encoding=None) == { "Content-Type": "text/plain" } assert _craft_artifact_put_headers("text/plain", "gzip") == { "Content-Type": "text/plain", "Content-Encoding": "gzip" }
def test_craft_artifact_put_headers(): assert _craft_artifact_put_headers('text/plain') == {'Content-Type': 'text/plain'} assert _craft_artifact_put_headers('text/plain', encoding=None) == {'Content-Type': 'text/plain'} assert _craft_artifact_put_headers('text/plain', 'gzip') == {'Content-Type': 'text/plain', 'Content-Encoding': 'gzip'}