Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_audioop Namespace Reference

Classes

class  TestAudioop

Functions

def gendata1
def gendata2
def gendata4
def test_main

Variables

list data = [gendata1(), gendata2(), gendata4()]
list INVALID_DATA

Function Documentation

Definition at line 6 of file test_audioop.py.

00006 
00007 def gendata1():
00008     return b'\0\1\2'

Definition at line 9 of file test_audioop.py.

00009 
00010 def gendata2():
00011     if audioop.getsample(b'\0\1', 2, 0) == 1:
00012         return b'\0\0\0\1\0\2'
00013     else:
00014         return b'\0\0\1\0\2\0'

Definition at line 15 of file test_audioop.py.

00015 
00016 def gendata4():
00017     if audioop.getsample(b'\0\0\0\1', 4, 0) == 1:
00018         return b'\0\0\0\0\0\0\0\1\0\0\0\2'
00019     else:
00020         return b'\0\0\0\0\1\0\0\0\2\0\0\0'

Definition at line 204 of file test_audioop.py.

00204 
00205 def test_main():
00206     run_unittest(TestAudioop)

Here is the call graph for this function:


Variable Documentation

Definition at line 21 of file test_audioop.py.

Initial value:
00001 [
00002     ('abc', 0),
00003     ('abc', 2),
00004     ('abc', 4),
00005 ]

Definition at line 23 of file test_audioop.py.