title: testing django forms with pytest failing
body: <p>I am not sure why the assertion below is failing.</p>
  <p>Can someone please give me a feedback, I am new to pytest with django.</p>
  <h1>test.forms</h1>
  <pre><code>@pytest.fixture
  def product():
      month = Month.objects.create(name=&quot;november&quot;, slug=&quot;november&quot;)
  
      user = User.objects.create(username=&quot;james&quot;, password=&quot;password&quot;)
  
      obj = Product.objects.create(
                                  user=user,
                                  name=&quot;broom&quot;,
                                  price=19.99,
                                  quantity=1,
                                  month=month,
      )
  
      
      data = {
          'user':user,
          'name':obj.name,
          'price':obj.price,
          'quantity':obj.quantity,
          'month':month
      }
  
      form = ProductForm(data=data)
      yield form
  
  def test_product_form_with_data(product):
      assert True is not None
      assert True == product.is_valid()
  </code></pre>
  <p>Below is what is am getting from the terminal.</p>
  <p>Traceback error.</p>
  <pre><code>_______________________________________________________________________________________ test_product_form_with_data ________________________________________________________________________________________
  
  product = &lt;ProductForm bound=True, valid=False, fields=(name;price;quantity;month)&gt;
  
      def test_product_form_with_data(product):
          assert True is not None
  &gt;       assert True == product.is_valid()
  E       assert True == False
  E         -True
  E         +False
  
  tests/test_forms.py:42: AssertionError
  </code></pre>
  <h1>models.py</h1>
  <pre><code>class Product(models.Model):
      month = models.ForeignKey(Month, on_delete=models.CASCADE, related_name='months')
      user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='users')
      name = models.CharField(max_length=30)
      slug = models.SlugField(max_length=30, db_index=True, blank=True)
      price = models.DecimalField(max_digits=10, decimal_places=2)
      quantity = models.PositiveSmallIntegerField(default=0)  
      created = models.DateTimeField(default=datetime.datetime.now())
      is_active = models.BooleanField(default=True)
  </code></pre>
  <h1>forms.py</h1>
  <pre><code>class ProductForm(ModelForm):
      class Meta:
          model = Product
          fields = [
                  'name', 
                  'price', 
                  'quantity',
                  'month',
      ]
  </code></pre>
  <p>I would really appreciate a feedback to help me understand what I am doing wrong trying to test this form with data while using fixture.</p>