'Test failures when setting many fields that are scoped to Scope.user_state'

def test_set_many_failure(self):

    kv_dict = self.construct_kv_dict()
    for key in kv_dict:
        self.kvs.set(key, 'test_value')
    with patch('django.db.models.Model.save', side_effect=DatabaseError):
        with self.assertRaises(KeyValueMultiSaveError) as exception_context:
            self.kvs.set_many(kv_dict)
    self.assertEquals(exception_context.exception.saved_field_names, [])
