Skip to content

Commit 78f2502

Browse files
charlesworthCharlesworth
charlesworth
authored andcommitted
locker tests check for specific Exceptions being raised
1 parent c3179d2 commit 78f2502

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/eva_locker_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
from evasdk.eva_locker import EvaWithLocker
7+
from evasdk.eva_errors import EvaLockError
78

89

910
class MockEva():
@@ -64,7 +65,7 @@ def test_not_locked_should_raise(self):
6465

6566

6667
def test_nested_locker_same_period_should_raise(self):
67-
with self.assertRaises(Exception):
68+
with self.assertRaises(EvaLockError):
6869
with self.testEvaWithLocker:
6970
with self.testEvaWithLocker:
7071
self.fail("did not raise exception when locking an already locked Eva")

0 commit comments

Comments
 (0)