File: test_netspeedcell.py

package info (click to toggle)
python-geoip 1.3.2-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 264 kB
  • sloc: ansic: 753; python: 248; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 214 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
import GeoIP
from nose.tools import assert_equal


def test_netspeed_cell():
    gi = GeoIP.open("tests/data/GeoIPNetSpeedCell.dat", GeoIP.GEOIP_STANDARD)

    assert_equal(gi.org_by_addr("2.125.160.1"), 'Dialup')