'Test live edges start with my member.'

def test_live_edge_callback_no_candidates(self):

    (node,) = self.create_nodes(1)
    def check_live_edge(edge_id, candidates):
        self.assertEqual(1, edge_id)
        self.assertEqual(node.my_member.mid, candidates[0].get_member().mid)
        check_live_edge.called = True
    node.community.set_live_edge_callback(check_live_edge)
    node.community.cancel_all_pending_tasks()
    node.community.reset_live_edges()
    node.community.take_step()
    self.assertTrue(check_live_edge.called)
