예제 #1
0
파일: test_layout.py 프로젝트: judy2k/pixie
    def test_sort_name(self):
        layout = self._layout

        self.assertSequenceEqual(
            [self.big, self.high, self.small, self.wide],
            list(layout.sort_sprites(self.all, 'name'))
        )
예제 #2
0
파일: test_layout.py 프로젝트: judy2k/pixie
    def test_sort_maxside(self):
        layout = self._layout

        self.assertSequenceEqual(
            [self.high, self.wide, self.big, self.small],
            list(layout.sort_sprites(self.all, 'maxside'))
        )