def check_security_headers(self, response):
        # What are the headers?
        headers = response._headers

        # Do we have the x-frame-options?
        actual = headers.get('x-frame-options')
        expected = ('X-Frame-Options', 'DENY')
        self.assertEqual(actual, expected)

        # Do we have the x-xss-protection?
        actual = headers.get('x-xss-protection')
        expected = ('x-xss-protection', '1; mode=block')
        self.assertEqual(actual, expected)

        # Do we have the x-content-type-options?
        actual = headers.get('x-content-type-options')
        expected = ('x-content-type-options', 'nosniff')
        self.assertEqual(actual, expected)
Returns a list of all the layers in the packet that are of the layer type (an incase-sensitive string).
dataset/ETHPy150Open 0xadada/dockdj/app/apps/tests/headers.py/HeaderTests.check_security_headers--crossover with--dataset/ETHPy150Open KimiNewt/pyshark/src/pyshark/packet/packet.py/Packet.get_multiple_layers