Skip to content

Commit

Permalink
Initial test_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
hexatester committed Aug 12, 2021
1 parent d0da7de commit 1416c51
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_exception.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from dapodik.exception import DapodikException
from dapodik.exception import AuthException
from dapodik.exception import PasswordSalah
from dapodik.exception import PenggunaTidakTerdaftar
from dapodik.exception import PenggunaTidakDitemukan
from dapodik.exception import ServerTidakMerespon
from dapodik.exception import DapodikResponseError


def test_subclass():
assert issubclass(DapodikException, BaseException)
assert issubclass(AuthException, DapodikException)
assert issubclass(PasswordSalah, AuthException)
assert issubclass(PenggunaTidakTerdaftar, AuthException)
assert issubclass(PenggunaTidakDitemukan, AuthException)
assert issubclass(ServerTidakMerespon, DapodikException)
assert issubclass(DapodikResponseError, DapodikException)

0 comments on commit 1416c51

Please sign in to comment.