Skip to content

Commit bbae6c1

Browse files
clarkfitzgy-p
authored andcommitted
Added test for wb.get_countries
1 parent b537df5 commit bbae6c1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

doc/source/release.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ Improvements to existing features
102102

103103
Bug Fixes
104104
~~~~~~~~~
105+
- Bug in ``io.wb.get_countries`` not including all countries (:issue:`6008`)
105106
- Bug in Series replace with timestamp dict (:issue:`5797`)
106107
- read_csv/read_table now respects the `prefix` kwarg (:issue:`5732`).
107108
- Bug in selection with missing values via ``.ix`` from a duplicate indexed DataFrame failing (:issue:`5835`)

pandas/io/tests/test_wb.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
from pandas.util.testing import network
66
from pandas.util.testing import assert_frame_equal
77
from numpy.testing.decorators import slow
8-
from pandas.io.wb import search, download
8+
from pandas.io.wb import search, download, get_countries
99
import pandas.util.testing as tm
1010

11+
1112
class TestWB(tm.TestCase):
1213

1314
@slow
@@ -30,7 +31,6 @@ def test_wdi_search(self):
3031
expected.index = result.index
3132
assert_frame_equal(result, expected)
3233

33-
3434
@slow
3535
@network
3636
def test_wdi_download(self):
@@ -43,6 +43,12 @@ def test_wdi_download(self):
4343
expected.index = result.index
4444
assert_frame_equal(result, pandas.DataFrame(expected))
4545

46+
@slow
47+
@network
48+
def test_wdi_get_countries(self):
49+
result = get_countries()
50+
self.assertTrue('Zimbabwe' in list(result['name']))
51+
4652

4753
if __name__ == '__main__':
4854
nose.runmodule(argv=[__file__, '-vvs', '-x', '--pdb', '--pdb-failure'],

0 commit comments

Comments
 (0)