Skip to content

Commit a85d12b

Browse files
author
Clement Champetier
committed
pyTest: avoid using 'format' key word in testOutputFile
1 parent 695db8b commit a85d12b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/pyTest/testOutputFile.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ def testCreateOutputFileWithExtension():
77
"""
88
Create an OutputFile with a filename with extension.
99
"""
10-
ext = "mov"
11-
outputFileName = "testCreateOutputFileWithExtension." + ext
10+
formatName = "mov"
11+
outputFileName = "testCreateOutputFileWithExtension." + formatName
1212
ouputFile = av.OutputFile( outputFileName )
1313

1414
assert_equals( ouputFile.getFilename(), outputFileName )
15-
assert_equals( ouputFile.getFormatName(), ext )
15+
assert_equals( ouputFile.getFormatName(), formatName )
1616

1717

1818
@raises(IOError)
@@ -31,12 +31,12 @@ def testCreateOutputFileWithoutExtensionWithFormat():
3131
Create an OutputFile with a filename without extension.
3232
Indicate the format.
3333
"""
34-
format = "mov"
34+
formatName = "mov"
3535
outputFileName = "testCreateOutputFileWithoutExtensionWithFormat"
36-
ouputFile = av.OutputFile( outputFileName, format )
36+
ouputFile = av.OutputFile( outputFileName, formatName )
3737

3838
assert_equals( ouputFile.getFilename(), outputFileName )
39-
assert_equals( ouputFile.getFormatName(), format )
39+
assert_equals( ouputFile.getFormatName(), formatName )
4040

4141

4242
def testCreateOutputFileWithoutExtensionWithMimeType():
@@ -58,11 +58,11 @@ def testCreateOutputFileWithoutExtensionWithInconsistentFormatAndMimeType():
5858
Indicate inconsistent format and Mime Type.
5959
The OutputFile should by-pass the Mime Type.
6060
"""
61-
format = "mov"
61+
formatName = "mov"
6262
mimeType = "application/mp4"
6363
outputFileName = "testCreateOutputFileWithoutExtensionWithInconsistentFormatAndMimeType"
64-
ouputFile = av.OutputFile( outputFileName, format, mimeType )
64+
ouputFile = av.OutputFile( outputFileName, formatName, mimeType )
6565

6666
assert_equals( ouputFile.getFilename(), outputFileName )
67-
assert_equals( ouputFile.getFormatName(), format )
67+
assert_equals( ouputFile.getFormatName(), formatName )
6868

0 commit comments

Comments
 (0)