def test_load_correct_type_of_pieces(self): image = TestScroller.MockImage(30) l = Scroller.load_pieces(image, 90) self.assertEqual(l[0][0], image)
def test_load_correct_number_of_pieces(self): image = TestScroller.MockImage(30) l = Scroller.load_pieces(image, 90) self.assertEqual(len(l), 3)