@@ -21,8 +21,8 @@ def setUp(self):
21
21
22
22
directory = os .path .dirname (os .path .realpath (__file__ ))
23
23
testfile = os .path .join (directory , "test.ini" )
24
- self .cp = ConfigParser ()
25
- self .cp .read (testfile )
24
+ self .cparser = ConfigParser ()
25
+ self .cparser .read (testfile )
26
26
27
27
def test_PrinterFactory_InlinePrinter (self ):
28
28
"""
@@ -59,7 +59,7 @@ def test_InlinePrinter(self):
59
59
60
60
#TODO Make this more readable
61
61
expected_output = "test cheat a lorem\n test cheat b ipsum\n test cheat c dolor\n "
62
- printer = cp .InlinePrinter (self .cp )
62
+ printer = cp .InlinePrinter (self .cparser )
63
63
64
64
with patch ('sys.stdout' , new = StringIO ()) as fake_out :
65
65
printer .printsheet ()
@@ -70,7 +70,7 @@ def test_InlinePrinter_width(self):
70
70
Test to see if the calculated width is correct.
71
71
"""
72
72
73
- printer = cp .InlinePrinter (self .cp )
73
+ printer = cp .InlinePrinter (self .cparser )
74
74
75
75
expected_length = str (len ('Test Cheat A' ))
76
76
self .assertEqual (printer .width , expected_length )
@@ -82,7 +82,7 @@ def test_BreaklinePrinter(self):
82
82
83
83
#TODO Make this more readable
84
84
expected_output = "test cheat a \n lorem\n test cheat b \n ipsum\n test cheat c \n dolor\n "
85
- printer = cp .BreaklinePrinter (self .cp )
85
+ printer = cp .BreaklinePrinter (self .cparser )
86
86
87
87
with patch ('sys.stdout' , new = StringIO ()) as fake_out :
88
88
printer .printsheet ()
@@ -96,7 +96,7 @@ def test_Printer_printsheet(self):
96
96
97
97
#TODO Make this more readable
98
98
expected_output = "test cheat a\n test cheat b\n test cheat c\n "
99
- printer = cp .Printer (self .cp )
99
+ printer = cp .Printer (self .cparser )
100
100
template = "{0}"
101
101
102
102
with patch ('sys.stdout' , new = StringIO ()) as fake_out :
0 commit comments