'Data containing only a single object, instead of a list of objects
should return errors.'

def test_invalid_single_object(self):

    data = {u'id': 0, u'title': u'The    electric    kool-aid    acid    test', u'author': u'Tom    Wolfe'}
    serializer = self.BookSerializer(data=data, many=True)
    assert (serializer.is_valid() is False)
    expected_errors = {u'non_field_errors': [u'Expected    a    list    of    items    but    got    type    "dict".']}
    assert (serializer.errors == expected_errors)
