

def test_simple_response(self):
    resp = self.client.get('/comments/')
    expected = [{
        'id': 1,
        'email': 'example@ya.ru',
    }, {
        'id': 2,
        'email': 'example@gmail.com',
    }]
    self.assertEqual(resp.data, expected)

dataset/ETHPy150Open chibisov/drf-extensions/tests_app/tests/functional/mixins/list_destroy_model_mixin/tests.py ListDestroyModelMixinTest.test_simple_response/original