Sha256: 053efc3a10ccc78372fb9dcb1b8673bb449ddca999165134a4a4f942d7e8f0cf
Contents?: true
Size: 705 Bytes
Versions: 9
Compression:
Stored size: 705 Bytes
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Python do include_examples 'fingerprinter' context 'when the page has a .py extension' do it 'identifies it as Python' do page = Arachni::Page.new( url: 'http://stuff.com/blah.py' ) platforms_for( page ).should include :python end end context 'when there is an X-Powered-By header' do it 'identifies it as Python' do page = Arachni::Page.new( url: 'http://stuff.com/blah', response_headers: { 'X-Powered-By' => 'Python/stuff' } ) platforms_for( page ).should include :python end end end
Version data entries
9 entries across 9 versions & 1 rubygems