@@ -7,12 +7,14 @@ def testCreateOutputFileWithExtension():
7
7
"""
8
8
Create an OutputFile with a filename with extension.
9
9
"""
10
- ext = "mov"
11
- outputFileName = "testCreateOutputFileWithExtension." + ext
10
+ formatName = "mov"
11
+ formatLongName = "QuickTime / MOV"
12
+ outputFileName = "testCreateOutputFileWithExtension." + formatName
12
13
ouputFile = av .OutputFile ( outputFileName )
13
14
14
15
assert_equals ( ouputFile .getFilename (), outputFileName )
15
- assert_equals ( ouputFile .getFormatName (), ext )
16
+ assert_equals ( ouputFile .getFormatName (), formatName )
17
+ assert_equals ( ouputFile .getFormatLongName (), formatLongName )
16
18
17
19
18
20
@raises (IOError )
@@ -21,22 +23,22 @@ def testCreateOutputFileWithoutExtension():
21
23
Create an OutputFile with a filename without extension.
22
24
"""
23
25
outputFileName = "testCreateOutputFileWithoutExtension"
24
- ouputFile = av .OutputFile ( outputFileName )
25
-
26
- assert_equals ( ouputFile .getFilename (), outputFileName )
26
+ av .OutputFile ( outputFileName )
27
27
28
28
29
29
def testCreateOutputFileWithoutExtensionWithFormat ():
30
30
"""
31
31
Create an OutputFile with a filename without extension.
32
32
Indicate the format.
33
33
"""
34
- format = "mov"
34
+ formatName = "mov"
35
+ formatLongName = "QuickTime / MOV"
35
36
outputFileName = "testCreateOutputFileWithoutExtensionWithFormat"
36
- ouputFile = av .OutputFile ( outputFileName , format )
37
+ ouputFile = av .OutputFile ( outputFileName , formatName )
37
38
38
39
assert_equals ( ouputFile .getFilename (), outputFileName )
39
- assert_equals ( ouputFile .getFormatName (), format )
40
+ assert_equals ( ouputFile .getFormatName (), formatName )
41
+ assert_equals ( ouputFile .getFormatLongName (), formatLongName )
40
42
41
43
42
44
def testCreateOutputFileWithoutExtensionWithMimeType ():
@@ -58,11 +60,13 @@ def testCreateOutputFileWithoutExtensionWithInconsistentFormatAndMimeType():
58
60
Indicate inconsistent format and Mime Type.
59
61
The OutputFile should by-pass the Mime Type.
60
62
"""
61
- format = "mov"
63
+ formatName = "mov"
64
+ formatLongName = "QuickTime / MOV"
62
65
mimeType = "application/mp4"
63
66
outputFileName = "testCreateOutputFileWithoutExtensionWithInconsistentFormatAndMimeType"
64
- ouputFile = av .OutputFile ( outputFileName , format , mimeType )
67
+ ouputFile = av .OutputFile ( outputFileName , formatName , mimeType )
65
68
66
69
assert_equals ( ouputFile .getFilename (), outputFileName )
67
- assert_equals ( ouputFile .getFormatName (), format )
70
+ assert_equals ( ouputFile .getFormatName (), formatName )
71
+ assert_equals ( ouputFile .getFormatLongName (), formatLongName )
68
72
0 commit comments