Skip to content

Commit 621864b

Browse files
committed
test #3: no content uploaded
1 parent f3dc964 commit 621864b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_webio.py

+7
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ def test_get_sheet(self):
163163
assert sheet.to_array() == self.data
164164
f.close()
165165

166+
@raises(IOError)
167+
def test_get_sheet_in_exception(self):
168+
myinput = TestExtendedInput()
169+
f = open(self.testfile, 'rb')
170+
f.read()
171+
myinput.get_sheet(field_name=('xls', f))
172+
166173
@raises(Exception)
167174
def test_wrong_file_tuple_returned(self):
168175
myinput = TestExtendedInput()

0 commit comments

Comments
 (0)