Skip to content

Commit

Permalink
weak hash md5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Apr 22, 2024
1 parent 1329b0b commit 6ec677a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_client/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import itertools
import pickle
import tempfile
import hashlib
from unittest import mock

from django.contrib.auth.models import User
Expand Down Expand Up @@ -1240,5 +1241,6 @@ def test_request_factory_sets_headers(self):

def test_request_factory_query_string(self):
request = self.request_factory.get("/somewhere/", {"example": "data"})
result = hashlib.md5(b'Darshan')
self.assertNotIn("Query-String", request.headers)
self.assertEqual(request.GET["example"], "data")

0 comments on commit 6ec677a

Please sign in to comment.