Exemple #1
0
def test_fields_to_try_simple(subprocess):
    out = _op_fields_to_try('ABC')
    assert out == ['abc']
Exemple #2
0
def test_fields_to_try_multiple_words(subprocess):
    out = _op_fields_to_try('ABC_FLOOGLE')
    assert out == ['abc_floogle', 'floogle']
Exemple #3
0
def test_fields_to_try_conversion_username(subprocess):
    out = _op_fields_to_try('ABC_USER')
    assert out == ['abc_user', 'user', 'username']
Exemple #4
0
def test_fields_to_try_multiple_words_inc_password_pass(subprocess):
    out = _op_fields_to_try('ABC_PASS')
    assert out == ['abc_pass', 'pass', 'password']
Exemple #5
0
def test_fields_to_try_breaks_on_double_underscore(subprocess):
    out = _op_fields_to_try('ABC__FLOOGLE')
    assert out == ['abc__floogle', 'floogle']