Commit 51f31459 authored by Michal Čihař's avatar Michal Čihař

Add test for handing nonexisting accounts

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 046f897e
......@@ -169,3 +169,13 @@ class ACLViewTest(ViewTestCase):
username=self.user.username
).exists()
)
def test_nonexisting_user(self):
"""Test adding non existing user."""
self.project.owners.add(self.user)
response = self.client.post(
reverse('add-user', kwargs=self.kw_project),
{'name': 'nonexisging'},
follow=True
)
self.assertContains(response, 'No matching user found!')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment