'Delete should reject on r/o db and work on r/w one'

@ddt.data((ModuleStoreEnum.Type.mongo, 7, 2), (ModuleStoreEnum.Type.split, 3, 3))
@ddt.unpack
def test_delete_item(self, default_ms, max_find, max_send):

    self.initdb(default_ms)
    if ((default_ms == ModuleStoreEnum.Type.mongo) and mongo_uses_error_check(self.store)):
        max_find += 1
    with self.store.branch_setting(ModuleStoreEnum.Branch.draft_preferred, self.writable_chapter_location.course_key):
        with check_mongo_calls(max_find, max_send):
            self.store.delete_item(self.writable_chapter_location, self.user_id)
        with self.assertRaises(ItemNotFoundError):
            self.store.get_item(self.writable_chapter_location)
    with self.assertRaises(ItemNotFoundError):
        self.store.get_item(self.writable_chapter_location, revision=ModuleStoreEnum.RevisionOption.published_only)
