def test_lots_of_padding_tail(self): expected = [(s, 0) for s in range(5, -1, -1)] * 2 self.assertEqual(_pad_physical_notes([], 12, tail=True), expected)
def test_little_padding_tail(self): supplied = [(0, 8)] expected = supplied + [(5, 0), (4, 0)] self.assertEqual(_pad_physical_notes(supplied, 3, tail=True), expected)
def test_little_padding(self): supplied = [(0, 8)] expected = [(1, 0), (0, 0)] + supplied self.assertEqual(_pad_physical_notes(supplied, 3), expected)
def test_no_padding_tail(self): supplied = [(0, 8), (1, 10)] self.assertEqual(_pad_physical_notes(supplied, 2, tail=True), supplied)
def test_no_padding(self): supplied = [(0, 8), (1, 10)] self.assertEqual(_pad_physical_notes(supplied, 2), supplied)