def METHOD_NAME(self):
    with self.app.app_context():
        # check that the sources are otherwise unchanged
        sources = db.engine.execute(text("SELECT * FROM sources")).fetchall()
        assert len(sources) == len(self.original_sources)
        for source in sources:
            assert hasattr(source, "flagged")
            original_source = self.original_sources[source.uuid]
            assert source.id == original_source.id
            assert source.journalist_designation == original_source.journalist_designation
            assert source.last_updated == original_source.last_updated
            assert source.pending == original_source.pending
            assert source.interaction_count == original_source.interaction_count
            assert not hasattr(original_source, "flagged")
            assert source.flagged is None
            source_submissions = db.engine.execute(
                text("SELECT * FROM submissions WHERE source_id = :source_id"),
                source_id=source.id,
            ).fetchall()
            assert source_submissions == self.source_submissions[source.id]