Back to index

python3.2  3.2.2
Public Member Functions
test.test_codecs.ReadBufferTest Class Reference

List of all members.

Public Member Functions

def test_array
def test_empty
def test_bad_args

Detailed Description

Definition at line 650 of file test_codecs.py.


Member Function Documentation

Definition at line 652 of file test_codecs.py.

00652 
00653     def test_array(self):
00654         import array
00655         self.assertEqual(
00656             codecs.readbuffer_encode(array.array("b", b"spam")),
00657             (b"spam", 4)
00658         )

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 662 of file test_codecs.py.

00662 
00663     def test_bad_args(self):
00664         self.assertRaises(TypeError, codecs.readbuffer_encode)
00665         self.assertRaises(TypeError, codecs.readbuffer_encode, 42)

Here is the call graph for this function:

Definition at line 659 of file test_codecs.py.

00659 
00660     def test_empty(self):
00661         self.assertEqual(codecs.readbuffer_encode(""), (b"", 0))

Here is the call graph for this function:


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