title: Modify the django test to pass the django-otp login
body: <p>I am using <code>django-otp</code>. Here is the web view</p>
  
  <p><a href="https://i.stack.imgur.com/xIQQP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xIQQP.png" alt="enter image description here"></a></p>
  
  <p>here is my <code>urls.py</code></p>
  
  <pre><code> path('user_login/', LoginView.as_view(template_name="user_login.html",
                                            authentication_form=SimpleOTPAuthenticationForm, redirect_authenticated_user=True), name='user_login')
  </code></pre>
  
  <p>Here is my .html</p>
  
  <pre><code>        &lt;form method="POST" class="form"&gt;
              {% csrf_token %}
              {% bootstrap_form form %}
              {% buttons %}
                  &lt;button type="submit" class="btn btn-primary"&gt;Login&lt;/button&gt;
              {% endbuttons %}
          &lt;/form&gt;
  </code></pre>
  
  <p>Here is my forms.py</p>
  
  <pre><code>from django_otp.forms import OTPAuthenticationForm
  from django import forms
  
  
  class SimpleOTPAuthenticationForm(OTPAuthenticationForm):
      otp_device = forms.CharField(required=False, widget=forms.HiddenInput)
      otp_challenge = forms.CharField(required=False, widget=forms.HiddenInput)
  </code></pre>
  
  <p>The models.py file is </p>
  
  <pre><code>from django.contrib.auth.models import AbstractUser
  
  
  class ProjectUser(AbstractUser):
  
      def __str__(self):
          return self.username
  </code></pre>
  
  <p>Here is the current test I have for username and password</p>
  
  <pre><code>class FormTest(TestCase):
      def setUp(self):
          self.credentials = {
              'username': 'testuser',
              'password': 'secret'}
          ProjectUser.objects.create_user(**self.credentials)
  
      def test_user_password_otp_true(self):
          response = self.client.post('/user_login/', self.credentials, follow=True)
          self.assertTrue(response.context['user'].is_active)
  </code></pre>
  
  <p>How can I change the test to pass the OTP along with the username and password?</p>
  
  <p><a href="https://django-otp-official.readthedocs.io/en/latest/" rel="nofollow noreferrer">Here is the link to the docs</a></p>
  
  <p>check line number 60 in this code -> <a href="https://bitbucket.org/psagers/django-otp/src/762774ec96b44718659737696ec4a074173ffb83/django-otp/django_otp/tests.py?fileviewer=file-view-default" rel="nofollow noreferrer">Here is a link to a test they use</a></p>