# coding: utf8

import geocoder

location = 'Ottawa'


def test_mapzen():
    g = geocoder.mapzen(location)
    assert g.ok
    osm_count, fields_count = g.debug()[0]
    assert osm_count >= 3
    assert fields_count >= 12


def test_mapzen_reverse():
    g = geocoder.mapzen("45.4049053 -75.7077965", method='reverse')
    assert g.ok


def test_multi_results():
    g = geocoder.mapzen(location, maxRows=3)
    assert len(g) == 3

# coding: utf8

import geocoder

location = 'Ottawa'


def test_mapzen():
    g = geocoder.mapzen(location)
    assert g.ok
    osm_count, fields_count = g.debug()[0]
    assert osm_count >= 3
    assert fields_count >= 12


def test_mapzen_reverse():
    g = geocoder.mapzen("45.4049053 -75.7077965", method='reverse')
    assert g.ok


def test_multi_results():
    g = geocoder.mapzen(location, maxRows=3)
    assert len(g) == 3

# coding: utf8