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