@pytest.mark.parametrize('params,fixturenames,expect_keys', [({'b': 1, 'a': 0}, ['c', 'a', 'd', 'b'], ['c', 'a', 'd', 'b']), ({'b': 1, 'a': 0}, ['c', 'b'], ['c', 'b', 'a'])])
def test_sorted_argnames(params, fixturenames, expect_keys):
    assert (list(_sorted_argnames(params, fixturenames)) == expect_keys)
@pytest.mark.parametrize('params,fixturenames,expect_keys', [({'b': 1, 'a': 0}, ['c', 'a', 'd', 'b'], ['c', 'a', 'd', 'b']), ({'b': 1, 'a': 0}, ['c', 'b'], ['c', 'b', 'a'])])
def test_sorted_argnames(params, fixturenames, expect_keys):
    assert (list(_sorted_argnames(params, fixturenames)) == expect_keys)