Changeset 202:63d7ab8ede83


Ignore:
Timestamp:
Sep 3, 2013, 9:28:38 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Level doesn't gave a get_drawables() getter any more, that was rubbish

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/tests/test_level.py

    r186 r202  
    3232            self.assertEqual((5, 10), level.get_size())
    3333            self.assertEqual([], level.get_walls())
    34             self.assertEqual([], level.get_drawables())
     34            self.assertEqual([], level.drawables)
    3535
    3636        level = self.make_level('foo', {
     
    4949            self.assertEqual((5, 10), level.get_size())
    5050            self.assertEqual([[(1, 1), (2, 1), (1, 2)]], level.get_walls())
    51             self.assertEqual([], level.get_drawables())
     51            self.assertEqual([], level.drawables)
    5252
    5353        level = self.make_level('foo', {
     
    6767            self.assertEqual((5, 10), level.get_size())
    6868            self.assertEqual([], level.get_walls())
    69             [box, switch] = level.get_drawables()
     69            [box, switch] = level.drawables
    7070            self.assertTrue(isinstance(box, go.Box))
    7171            self.assertEqual(box.shape.body.position, (3, 3))
Note: See TracChangeset for help on using the changeset viewer.