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')) )
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')) )