def test_ten_rows(self): self.assertEqual(rows(10), TRIANGLE[:10])
def test_negative_rows(self): self.assertEqual(rows(-1), None)
def test_five_rows(self): self.assertEqual(rows(5), TRIANGLE[:5])
def test_six_rows(self): self.assertEqual(rows(6), TRIANGLE[:6])
def test_four_rows(self): self.assertEqual(rows(4), TRIANGLE[:4])
def test_three_rows(self): self.assertEqual(rows(3), TRIANGLE[:3])
def test_two_rows(self): self.assertEqual(rows(2), TRIANGLE[:2])
def test_single_row(self): self.assertEqual(rows(1), TRIANGLE[:1])
def test_zero_rows(self): self.assertEqual(rows(0), [])