def test_missing_method_definition_returns_none(): result = views.get_method_definition('POST', { 'get': {} }) assert result == None
def test_existing_method_definition_is_returned(): result = views.get_method_definition('GET', { 'get': {} }) assert result == {}