We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 130c5c9 commit 4cc3c22Copy full SHA for 4cc3c22
tests/test_input.py
@@ -131,6 +131,14 @@ def test_read_kind(self):
131
def test_inputs_list_on_one_kind(self):
132
self.service.inputs.list('monitor')
133
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
+
142
def test_inputs_list_on_one_kind_with_count(self):
143
N = 10
144
expected = [x.name for x in self.service.inputs.list('monitor')[:10]]
0 commit comments