def test_get_priority_second():
    """The second non-None should be returned if the first is None."""
    target = 'beta'
    actual = config.get_priority(None, target, 'third')
    assert target == actual
The second non-None should be returned if the first is None.
test/config_test.py