def METHOD_NAME(self):
    source = Source(uuid="id")
    file_1 = File(uuid="one", source=source, is_downloaded=True)
    file_2 = File(uuid="two", source=source, is_downloaded=False)
    database = mock.MagicMock()
    database.get_files = mock.MagicMock(return_value=[file_1, file_2])
    initialized_state = state.State(database)
    assert initialized_state.file(state.FileId("one")).is_downloaded
    assert not initialized_state.file(state.FileId("two")).is_downloaded
    assert len(initialized_state.conversation_files(state.ConversationId("id"))) == 2