Back to index

python3.2  3.2.2
Public Member Functions
test.test_sndhdr.TestFormats Class Reference

List of all members.

Public Member Functions

def test_data

Detailed Description

Definition at line 5 of file test_sndhdr.py.


Member Function Documentation

Definition at line 6 of file test_sndhdr.py.

00006 
00007     def test_data(self):
00008         for filename, expected in (
00009             ('sndhdr.8svx', ('8svx', 0, 1, 0, 8)),
00010             ('sndhdr.aifc', ('aifc', 44100, 2, 5, 16)),
00011             ('sndhdr.aiff', ('aiff', 44100, 2, 5, 16)),
00012             ('sndhdr.au', ('au', 44100, 2, 5.0, 16)),
00013             ('sndhdr.hcom', ('hcom', 22050.0, 1, -1, 8)),
00014             ('sndhdr.sndt', ('sndt', 44100, 1, 5, 8)),
00015             ('sndhdr.voc', ('voc', 0, 1, -1, 8)),
00016             ('sndhdr.wav', ('wav', 44100, 2, -1, 16)),
00017         ):
00018             filename = findfile(filename, subdir="sndhdrdata")
00019             what = sndhdr.what(filename)
00020             self.assertNotEqual(what, None, filename)
00021             self.assertSequenceEqual(what, expected)

Here is the call graph for this function:


The documentation for this class was generated from the following file: