def test_roombooking_create_model(self): with self.schema_editor() as editor: editor.create_model(RoomBooking) self.assertContainsMatch(editor.collected_sql, ROOMBOOKING_SQL)