'Test consecutive manual selects'

def testSwitchSelection(self):

    menu = self.menu
    items = self.items
    assertTrue = self.assertTrue
    assertIsNone = self.assertIsNone
    menu.select(tag='a11')
    assertTrue(menu.selected)
    assertTrue(items['a1'].selected)
    assertTrue(items['a11'].selected)
    assertIsNone(items['a12'].selected)
    assertIsNone(items['a2'].selected)
    assertIsNone(items['a21'].selected)
    assertIsNone(items['a22'].selected)
    menu.select(tag='a22')
    assertTrue(menu.selected)
    assertIsNone(items['a1'].selected)
    assertIsNone(items['a11'].selected)
    assertIsNone(items['a12'].selected)
    assertTrue(items['a2'].selected)
    assertIsNone(items['a21'].selected)
    assertTrue(items['a22'].selected)
