diff options
author | NavaL <mnandri@thoughtworks.com> | 2016-01-26 09:55:57 +0100 |
---|---|---|
committer | NavaL <mnandri@thoughtworks.com> | 2016-01-26 09:55:57 +0100 |
commit | d95509bf6641ce0722e9f75608360d5b68086678 (patch) | |
tree | 9de194bd4d83ff1f35e85bfb88c0e5092a438f46 | |
parent | bb16581d63d1de23a5dc5457e0030802b9fd00d7 (diff) |
tests only input names on the login form
Issue #576
-rw-r--r-- | service/test/unit/resources/test_login_resource.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/test/unit/resources/test_login_resource.py b/service/test/unit/resources/test_login_resource.py index ee0845ea..1f9a7c6a 100644 --- a/service/test/unit/resources/test_login_resource.py +++ b/service/test/unit/resources/test_login_resource.py @@ -53,9 +53,9 @@ class TestLoginResource(unittest.TestCase): self.assertEqual(200, request.responseCode) form_action = 'action="/login"' form_method = 'method="post"' - input_username = '<input autofocus="" placeholder=" username" class="text-field" type="text" tabindex="1" id="email" name="username" />' - input_password = '<input placeholder=" password" class="text-field" type="password" tabindex="2" id="password" name="password" autocomplete="off" />' - input_submit = '<input type="submit" tabindex="3" class="button" name="login" value="Login" />' + input_username = 'name="username"' + input_password = 'name="password"' + input_submit = 'name="login"' written_response = ''.join(request.written) self.assertIn(form_action, written_response) self.assertIn(form_method, written_response) |