'Serialization of a list of objects should return a list of dictionaries.'

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)
