@pytest.mark.django_db
def test_product_json_with_valid_id():
    client = make_login_client()
    product = mommy.make(Product)
    url = reverse(product_json, kwargs={'id': product.id})