Back to index

python3.2  3.2.2
Classes | Public Member Functions
test.test_cmd.TestAlternateInput Class Reference

List of all members.

Classes

class  simplecmd

Public Member Functions

def test_file_with_missing_final_nl

Detailed Description

Definition at line 173 of file test_cmd.py.


Member Function Documentation

Definition at line 183 of file test_cmd.py.

00183 
00184     def test_file_with_missing_final_nl(self):
00185         input = io.StringIO("print test\nprint test2")
00186         output = io.StringIO()
00187         cmd = self.simplecmd(stdin=input, stdout=output)
00188         cmd.use_rawinput = False
00189         cmd.cmdloop()
00190         self.assertMultiLineEqual(output.getvalue(),
00191             ("(Cmd) test\n"
00192              "(Cmd) test2\n"
00193              "(Cmd) "))
00194 

Here is the call graph for this function:


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