def test_serialize(self):
        input_objects = [
            BasicObject(integer=123, boolean=True),
            BasicObject(integer=456, boolean=False)
        ]
        expected_output = [
            {"integer": 123, "boolean": True},
            {"integer": 456, "boolean": False}
        ]
        serializer = self.Serializer(input_objects)
        assert serializer.data == expected_output
Are two linear entities perpendicular?
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_serializer_lists.py/TestListSerializerContainingNestedSerializer.test_serialize--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/geometry/line.py/LinearEntity.is_perpendicular