1from AppKit import * 2from PyObjCTools.TestSupport import * 3 4class TestNSCollectionView (TestCase): 5 def testMethods(self): 6 self.failUnlessResultIsBOOL(NSCollectionViewItem.isSelected) 7 self.failUnlessArgIsBOOL(NSCollectionViewItem.setSelected_, 0) 8 9 self.failUnlessResultIsBOOL(NSCollectionView.isFirstResponder) 10 11 self.failUnlessResultIsBOOL(NSCollectionView.isSelectable) 12 self.failUnlessArgIsBOOL(NSCollectionView.setSelectable_, 0) 13 self.failUnlessResultIsBOOL(NSCollectionView.allowsMultipleSelection) 14 self.failUnlessArgIsBOOL(NSCollectionView.setAllowsMultipleSelection_, 0) 15 16if __name__ == "__main__": 17 main() 18