'Does Brain sort modules by priority?'

def testSortByPriority(self):

    my_brain = TestBrain._emptyBrain()
    priorities = filter((lambda m: hasattr(m, 'PRIORITY')), my_brain.modules)
    target = sorted(priorities, key=(lambda m: m.PRIORITY), reverse=True)
    self.assertEqual(target, priorities)
