@pytest.mark.parametrize('actor,expected', [({'id': 'blah'}, 'blah'), ({'id': 'blah', 'login': 'l'}, 'l'), ({'id': 'blah', 'login': 'l'}, 'l'), ({'id': 'blah', 'login': 'l', 'username': 'u'}, 'u'), ({'login': 'l', 'name': 'n'}, 'n'), ({'id': 'blah', 'login': 'l', 'username': 'u', 'name': 'n', 'display': 'd'}, 'd'), ({'weird': 'shape'}, "{'weird': 'shape'}")])
def test_display_actor(actor, expected):
    assert (expected == utils.display_actor(actor))
@pytest.mark.parametrize('actor,expected', [({'id': 'blah'}, 'blah'), ({'id': 'blah', 'login': 'l'}, 'l'), ({'id': 'blah', 'login': 'l'}, 'l'), ({'id': 'blah', 'login': 'l', 'username': 'u'}, 'u'), ({'login': 'l', 'name': 'n'}, 'n'), ({'id': 'blah', 'login': 'l', 'username': 'u', 'name': 'n', 'display': 'd'}, 'd'), ({'weird': 'shape'}, "{'weird': 'shape'}")])
def test_display_actor(actor, expected):
    assert (expected == utils.display_actor(actor))