Expand CSVResponseMixin functionality

This commit is contained in:
Ludovic Stephan 2020-05-12 01:11:59 +02:00
parent 9b0440429c
commit 6fff995ccd
3 changed files with 49 additions and 38 deletions

View file

@ -92,9 +92,8 @@ class CSVExportContentTest(MessagePatch, CSVResponseMixin, TestCase):
response = self.client.get(self.url)
content = self.load_from_csv_response(response, as_dict=True)
self.assertListEqual(
content,
self.assertCSVEqual(
response,
[
{
"username": "toto_foo",
@ -141,7 +140,7 @@ class CSVExportContentTest(MessagePatch, CSVResponseMixin, TestCase):
)
response = self.client.get(self.url)
content = self.load_from_csv_response(response, as_dict=True)
content = self._load_from_csv_response(response, as_dict=True)
toto_dict = dict(content[0])
# This is not super nice, but it makes the test deterministic.