def test_key_in_detail_result(self):
        response = self.client.get(self.detail_url)
        self.assertEqual(response.status_code, 200)

        expected = {
            'data': {
                'type': 'users',
                'id': encoding.force_text(self.miles.pk),
                'attributes': {
                    'first-name': self.miles.first_name,
                    'last-name': self.miles.last_name,
                    'email': self.miles.email
                },
            }
        }

        content_dump = redump_json(response.content)
        expected_dump = dump_json(expected)

        assert expected_dump == content_dump
Solving a 2-SAT boolean formula
dataset/ETHPy150Open django-json-api/django-rest-framework-json-api/example/tests/test_model_viewsets.py/ModelViewSetTests.test_key_in_detail_result--crossover with--dataset/ETHPy150Open jilljenn/tryalgo/tryalgo/two_sat.py/two_sat