Skip to content

Commit 4cc3c22

Browse files
author
Shakeel Mohamed
committed
Add test coverage for unknown input types
1 parent 130c5c9 commit 4cc3c22

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_input.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ def test_read_kind(self):
131131
def test_inputs_list_on_one_kind(self):
132132
self.service.inputs.list('monitor')
133133

134+
def test_read_invalid_input(self):
135+
name = testlib.tmpname()
136+
try:
137+
self.service.inputs.get(name)
138+
self.fail("Expected a 404 HTTPError")
139+
except HTTPError as he:
140+
self.assertTrue("HTTP 404 Not Found" in str(he))
141+
134142
def test_inputs_list_on_one_kind_with_count(self):
135143
N = 10
136144
expected = [x.name for x in self.service.inputs.list('monitor')[:10]]

0 commit comments

Comments
 (0)