def test_mark_lines(): with patch.object(bruteforce, "SIGNATURE_MAX_LINES", 2): # we analyse the 2nd line as well though it's the 6th line # (starting from the bottom) because we don't count empty line eq_( "ttset", e._mark_lines(["Bob Smith", "Bob Smith", "Bob Smith", "", "some text"], "Bob Smith"), ) with patch.object(bruteforce, "SIGNATURE_MAX_LINES", 3): # we don't analyse the 1st line because # signature cant start from the 1st line eq_( "tset", e._mark_lines(["Bob Smith", "Bob Smith", "", "some text"], "Bob Smith"), )
def test_mark_lines(): with patch.object(bruteforce, 'SIGNATURE_MAX_LINES', 2): # we analyse the 2nd line as well though it's the 6th line # (starting from the bottom) because we don't count empty line eq_( 'ttset', e._mark_lines( ['Bob Smith', 'Bob Smith', 'Bob Smith', '', 'some text'], 'Bob Smith')) with patch.object(bruteforce, 'SIGNATURE_MAX_LINES', 3): # we don't analyse the 1st line because # signature cant start from the 1st line eq_( 'tset', e._mark_lines(['Bob Smith', 'Bob Smith', '', 'some text'], 'Bob Smith'))
def test_mark_lines(): with patch.object(bruteforce, 'SIGNATURE_MAX_LINES', 2): # we analyse the 2nd line as well though it's the 6th line # (starting from the bottom) because we don't count empty line eq_(b'ttset', e._mark_lines(['Bob Smith', 'Bob Smith', 'Bob Smith', '', 'some text'], 'Bob Smith')) with patch.object(bruteforce, 'SIGNATURE_MAX_LINES', 3): # we don't analyse the 1st line because # signature cant start from the 1st line eq_(b'tset', e._mark_lines(['Bob Smith', 'Bob Smith', '', 'some text'], 'Bob Smith'))