INFINIDAT: unit tests - remove fake exception body

The class FakeInfinisdkException is used in the tests code to mock the
exceptions raised by infinisdk (our internal library for connecting to
the InfiniBox REST API). In earlier versions, this exception was
implemented by inhereting from the base Exception class and
implementing its constructor, however, this code is redundant,
and basic inherithance should do.

Change-Id: I44059d41143eaee6d7dcb073e21c9c840dacae3e
This commit is contained in:
Amit Oren 2018-07-31 16:32:16 +03:00 committed by Tom Barron
parent ecb7e2ebb9
commit 97daab4b3d
1 changed files with 1 additions and 5 deletions

View File

@ -65,11 +65,7 @@ def skip_driver_setup(func):
class FakeInfinisdkException(Exception):
def __init__(self, message=None, error_code=None, *args):
self.message = message
self.error_code = error_code
super(FakeInfinisdkException, self).__init__(
message, error_code, *args)
pass
class FakeInfinisdkPermission(object):