I wouldn't add raw as the candidates with a none category are actually
not-connectable and hence should not be used.

For this test I would simply use _candidates.itervalues().
On Jul 9, 2013 7:52 AM, "Boudewijn" <notifications@github.com> wrote:

> In tests/test_overlay.py:
>
> > +        assert len(cid_hex) == 40
> > +        assert isinstance(enable_fast_walker, bool)
> > +        cid = cid_hex.decode("HEX")
> > +
> > +        self._dispersy.statistics.enable_debug_statistics(True)
> > +        community = Community.join_community(self._dispersy, self._dispersy.get_temporary_member_from_id(cid), self._my_member)
> > +        summary.info(community.cid.encode("HEX"))
> > +
> > +        history = []
> > +        begin = time()
> > +        for _ in xrange(60 * 15):
> > +            yield 1.0
> > +            now = time()
> > +            info = Info()
> > +            info.diff = now - begin
> > +            info.candidates = [(candidate, candidate.get_category(community, now)) for candidate in community.dispersy_yield_candidates()]
>
> At some point during debugging I wanted to see if 'none' Candidates were
> properly cleaned up. Never noticed that it no longer worked.
>
> I'm thinking about adding a candidates property to Community to make the
> raw _candidates dict available for this. Any objections?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Tribler/dispersy/pull/76/files#r5082682>
> .
>