Skip to content

Commit

Permalink
add test for exeption
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed May 16, 2024
1 parent a3668f2 commit c6f5cec
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_exeptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import unittest
import sys
sys.path.append("..")
from osc_sdk_python import Gateway
from requests import HTTPError

class TestExept(unittest.TestCase):

def test_listing(self):
gw = Gateway()
# a is not a valide argument
with self.assertRaises(HTTPError):
gw.ReadVms(Filters="a")

if __name__ == '__main__':
unittest.main()

0 comments on commit c6f5cec

Please sign in to comment.