示例#1
0
 def test_zero_width(self):
     print_line(0, self.output)
     self.assertEquals(self.output.getvalue(), "-" * 20 + "\n")
示例#2
0
 def test_positive_width(self):
     print_line(5, self.output)
     self.assertEquals(self.output.getvalue(), "-" * 5 + "\n")
示例#3
0
 def test_negative_width(self):
     print_line(-1, self.output)
     self.assertEquals(self.output.getvalue(), "\n")