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