File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1567,11 +1567,16 @@ def test_infer_audio_content_subtypes(self):
1567
1567
data_to_subtype = {
1568
1568
b'FORM AIFC' : 'x-aiff' ,
1569
1569
b'FORM AIFF' : 'x-aiff' ,
1570
+ b'RIFF WAVEfmt ' : 'x-wav' ,
1570
1571
b'.snd' : 'basic' ,
1571
- b'.snd1orem1ps' : 'basic' , # the chars after '.snd' don't matter.
1572
- b'RIFF WAVEfmt ' : 'x-wav' , # trailing space is intentional.
1573
- }
1574
1572
1573
+ # Check that the 4 intermediate chars have no effect
1574
+ b'FORMabcdAIFC' : 'x-aiff' ,
1575
+ b'FORMzyxwAIFF' : 'x-aiff' ,
1576
+ b'RIFF1234WAVEfmt ' : 'x-wav' ,
1577
+ # Check that anything after the first 4 chars has no effect
1578
+ b'.sndFOOBARZ' : 'basic' ,
1579
+ }
1575
1580
for audiodata , subtype in data_to_subtype .items ():
1576
1581
au = MIMEAudio (audiodata )
1577
1582
self .assertEqual (au .get_content_subtype (), subtype )
You can’t perform that action at this time.
0 commit comments