def assert_markers(self, items, **expected):
items = {x.name: x for x in items}<EOL>for name, expected_markers in expected.items():<EOL><INDENT>markers = {m.name for m in items[name].iter_markers()}<EOL>assert markers == set(expected_markers)<EOL><DEDENT>
assert that given items have expected marker names applied to them.
        expected should be a dict of (item name -> seq of expected marker names)

        .. note:: this could be moved to ``testdir`` if proven to be useful
        to other modules.