def METHOD_NAME(browser, navigator, expected):
    if expected.navigator.plugins['count'][browser.type] == 'IGNORE':
        return
    elif expected.navigator.plugins['count'][browser.type] == 'REAL VALUE':
        assert len(navigator['plugins']) == len(browser.real.navigator.plugins)
    elif expected.navigator.plugins['count'][browser.type] == 'PLUS_2':
        assert len(navigator['plugins']) == len(browser.real.navigator.plugins) + 2
    else:
        assert len(navigator['plugins']) == expected.navigator.plugins['count'][browser.type]