Exemplo n.º 1
0
    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'))
        )
Exemplo n.º 2
0
    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'))
        )