Back to index

python3.2  3.2.2
Public Member Functions
test.test_csv.TestCsvBase Class Reference
Inheritance diagram for test.test_csv.TestCsvBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def readerAssertEqual
def writerAssertEqual

Detailed Description

Definition at line 387 of file test_csv.py.


Member Function Documentation

def test.test_csv.TestCsvBase.readerAssertEqual (   self,
  input,
  expected_result 
)

Definition at line 388 of file test_csv.py.

00388 
00389     def readerAssertEqual(self, input, expected_result):
00390         with TemporaryFile("w+", newline='') as fileobj:
00391             fileobj.write(input)
00392             fileobj.seek(0)
00393             reader = csv.reader(fileobj, dialect = self.dialect)
00394             fields = list(reader)
00395             self.assertEqual(fields, expected_result)

Here is the call graph for this function:

Here is the caller graph for this function:

def test.test_csv.TestCsvBase.writerAssertEqual (   self,
  input,
  expected_result 
)

Definition at line 396 of file test_csv.py.

00396 
00397     def writerAssertEqual(self, input, expected_result):
00398         with TemporaryFile("w+", newline='') as fileobj:
00399             writer = csv.writer(fileobj, dialect = self.dialect)
00400             writer.writerows(input)
00401             fileobj.seek(0)
00402             self.assertEqual(fileobj.read(), expected_result)

Here is the call graph for this function:

Here is the caller graph for this function:


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