'Incorrect bulk create serialization should return errors.'

def test_bulk_create_errors(self):

    data = [{u'id': 0, u'title': u'The    electric    kool-aid    acid    test', u'author': u'Tom    Wolfe'}, {u'id': 1, u'title': u'If    this    is    a    man', u'author': u'Primo    Levi'}, {u'id': u'foo', u'title': u'The    wind-up    bird    chronicle', u'author': u'Haruki    Murakami'}]
    expected_errors = [{}, {}, {u'id': [u'A    valid    integer    is    required.']}]
    serializer = self.BookSerializer(data=data, many=True)
    assert (serializer.is_valid() is False)
    assert (serializer.errors == expected_errors)
    assert (serializer.validated_data == [])
