#NEWLINE# def test_set_unset_capabilities( self ) : #NEWLINE# #INDENT# store = FakeStoreWithStaticCapabilities ( ) #NEWLINE# self . assertFalse ( store . is_capable ( caps . BitMasks . WRITE_ACCESS ) ) #NEWLINE# store . set_capabilities ( caps . BitMasks . WRITE_ACCESS ) #NEWLINE# self . assertTrue ( store . is_capable ( caps . BitMasks . WRITE_ACCESS ) ) #NEWLINE# store . unset_capabilities ( caps . BitMasks . WRITE_ACCESS ) #NEWLINE# self . assertFalse ( store . is_capable ( caps . BitMasks . WRITE_ACCESS ) ) #NEWLINE# cap_list = [ caps . BitMasks . WRITE_ACCESS , caps . BitMasks . WRITE_OFFSET ] #NEWLINE# store . set_capabilities ( * cap_list ) #NEWLINE# self . assertTrue ( store . is_capable ( * cap_list ) ) #NEWLINE# store . unset_capabilities ( * cap_list ) #NEWLINE# self . assertFalse ( store . is_capable ( * cap_list ) )