def test_delete_with_pk_already_missing_exc(self):
        with client.test_mode as t:
            t.register_json('/foo/42/', '', method='DELETE', status_code=404)
            with self.assertRaises(exc.NotFound):
                self.res.delete(42, fail_on_missing=True)
Initialize the layout for the underlying widget.
dataset/ETHPy150Open ansible/tower-cli/tests/test_models_base.py/ResourceTests.test_delete_with_pk_already_missing_exc--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/qt/qt_main_window.py/QtMainWindow.init_layout