Sha256: 1f311200d0f01cf4a407ac9216f33c9687b6ab9e928562ca880f60abfb02e93f

Contents?: true

Size: 722 Bytes

Versions: 8

Compression:

Stored size: 722 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.from_data( 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.from_data(
                url:     'http://stuff.com/blah',
                response: { headers: { 'X-Powered-By' => 'Python/stuff' } }
            )
            platforms_for( page ).should include :python
        end
    end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
arachni-1.1 spec/components/fingerprinters/languages/python_spec.rb
arachni-1.0.6 spec/components/fingerprinters/languages/python_spec.rb
arachni-1.0.5 spec/components/fingerprinters/languages/python_spec.rb
arachni-1.0.4 spec/components/fingerprinters/languages/python_spec.rb
arachni-1.0.3 spec/components/fingerprinters/languages/python_spec.rb
arachni-1.0.2 spec/components/fingerprinters/languages/python_spec.rb
arachni-1.0.1 spec/components/fingerprinters/languages/python_spec.rb
arachni-1.0 spec/components/fingerprinters/languages/python_spec.rb