Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
test.test_csv.TestUnicode Class Reference

List of all members.

Public Member Functions

def test_unicode_read
def test_unicode_write

Static Public Attributes

list names

Detailed Description

Definition at line 916 of file test_csv.py.


Member Function Documentation

Definition at line 923 of file test_csv.py.

00923 
00924     def test_unicode_read(self):
00925         import io
00926         with TemporaryFile("w+", newline='', encoding="utf-8") as fileobj:
00927             fileobj.write(",".join(self.names) + "\r\n")
00928             fileobj.seek(0)
00929             reader = csv.reader(fileobj)
00930             self.assertEqual(list(reader), [self.names])
00931 

Here is the call graph for this function:

Definition at line 932 of file test_csv.py.

00932 
00933     def test_unicode_write(self):
00934         import io
00935         with TemporaryFile("w+", newline='', encoding="utf-8") as fileobj:
00936             writer = csv.writer(fileobj)
00937             writer.writerow(self.names)
00938             expected = ",".join(self.names)+"\r\n"
00939             fileobj.seek(0)
00940             self.assertEqual(fileobj.read(), expected)
00941 
00942 

Here is the call graph for this function:


Member Data Documentation

Initial value:
["Martin von Löwis",
             "Marc André Lemburg",
             "Guido van Rossum",
             "François Pinard"]

Definition at line 918 of file test_csv.py.


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