8000 Non existing iid (#124) · ClarkDing/firebase-admin-python@8b89a9c · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b89a9c

Browse files
authored
Non existing iid (firebase#124)
* non-existing-uid * legal iid comment
1 parent 5f90e02 commit 8b89a9c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

integration/test_instance_id.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020

2121
def test_delete_non_existing():
2222
with pytest.raises(instance_id.ApiCallError) as excinfo:
23-
instance_id.delete_instance_id('non-existing')
24-
assert str(excinfo.value) == 'Instance ID "non-existing": Failed to find the instance ID.'
23+
# legal instance IDs are /[cdef][A-Za-z0-9_-]{9}[AEIMQUYcgkosw048]/
24+
instance_id.delete_instance_id('fictive-ID0')
25+
assert str(excinfo.value) == 'Instance ID "fictive-ID0": Failed to find the instance ID.'

0 commit comments

Comments
 (0)
0