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