Skip to content

Commit 17c3c4e

Browse files
committed
update exceptional tests
1 parent 2948a85 commit 17c3c4e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_webio.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,31 +46,37 @@ def test_load_book(self):
4646
testinput = webio.ExcelInput()
4747
testinput.get_book(filename="test") # booom
4848

49+
@raises(IOError)
4950
def test_get_sheet(self):
5051
myinput = TestInput()
5152
sheet = myinput.get_sheet(unrelated="foo bar")
5253
assert sheet == None
5354

55+
@raises(IOError)
5456
def test_get_array(self):
5557
myinput = TestInput()
5658
array = myinput.get_array(unrelated="foo bar")
5759
assert array == None
5860

61+
@raises(IOError)
5962
def test_get_dict(self):
6063
myinput = TestInput()
6164
result = myinput.get_dict(unrelated="foo bar")
6265
assert result == None
6366

67+
@raises(IOError)
6468
def test_get_records(self):
6569
myinput = TestInput()
6670
result = myinput.get_records(unrelated="foo bar")
6771
assert result == None
6872

73+
@raises(IOError)
6974
def test_get_book(self):
7075
myinput = TestInput()
7176
result = myinput.get_book(unrelated="foo bar")
7277
assert result == None
7378

79+
@raises(IOError)
7480
def test_get_book_dict(self):
7581
myinput = TestInput()
7682
result = myinput.get_book_dict(unrelated="foo bar")

0 commit comments

Comments
 (0)