def test_login_with_domain_key(self):
        self.assertAuthenticationSuccess(
            LoginAndDomainAuthentication(),
            self._get_request(
                self.domain,
                HTTP_AUTHORIZATION=self._construct_api_auth_header(
                    self.username,
                    self.domain_api_key
                )
            )
        )