def testExpandBrackets(self): #test position without bracket: self.test_file.seek(279) self.failIf(SELinux_CTS.expand_brackets(self.test_file)) #test position with bracket: self.test_file.seek(26123) self.failUnless( SELinux_CTS.expand_brackets(self.test_file) == " entrypoint read execute ") #test position with nested brackets: self.test_file.seek(26873) self.failUnless( SELinux_CTS.expand_brackets(self.test_file) == " dir chr_file blk_file file lnk_file sock_file fifo_file ")