Skip to content

Commit 4066ce3

Browse files
authored
Merge pull request #570 from ably/test-error-message
test: Don't assert error messages
2 parents dff73cd + bf64282 commit 4066ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ably/rest/restchannels_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ async def test_without_permissions(self):
8787
with pytest.raises(AblyException) as excinfo:
8888
await ably.channels['test_publish_without_permission'].publish('foo', 'woop')
8989

90-
assert 'not permitted' in excinfo.value.message
90+
assert 40160 == excinfo.value.code
9191
await ably.close()

0 commit comments

Comments
 (0)