1# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4from telemetry.core.backends import form_based_credentials_backend_unittest_base
5from telemetry.core.backends import codepen_credentials_backend
6
7
8class TestCodePenCredentialsBackend(
9    form_based_credentials_backend_unittest_base.
10    FormBasedCredentialsBackendUnitTestBase):
11  def setUp(self):
12    self._credentials_type = 'codepen'
13
14  def testLoginUsingMock(self):
15    backend = codepen_credentials_backend.CodePenCredentialsBackend()
16    self._LoginUsingMock(backend, backend.url, backend.login_input_id,
17                         backend.password_input_id, backend.login_form_id,
18                         backend.logged_in_javascript)
19