anchor.diff:      Ref = monitor(process, Pid),
       ok  = receive {'DOWN', _, process, Pid, _} -> ok end,
       ?assertMatch({ok, [{0, 1, 1}]}, ?chunk_server:request_chunks(8, Has, 1)).
  -
   -endif.
  
positive.code:     Srv = initial_chunk_server(1),
      Has = etorrent_pieceset:from_list([], 3),
      Ret = ?chunk_server:request_chunks(1, Has, 1),
      ?assertEqual({error, not_interested}, Ret). 
  
  request_one_case() ->
      Srv = initial_chunk_server(2),
  
negative.code:     
      %% If this peer has no pieces that we are already downloading, begin
      %% downloading a new piece if this peer has any interesting pieces.
      OptimalPieces    = etorrent_pieceset:intersection(Peerset, PiecesChunked),
      SubOptimalPieces = etorrent_pieceset:difference(Peerset, PiecesValid),
      NumOptimal    = etorrent_pieceset:size(OptimalPieces),
      NumSubOptimal = etorrent_pieceset:size(SubOptimalPieces),
  
      ?debugVal({NumOptimal, NumSubOptimal}),
      PieceIndex = case {NumOptimal, NumSubOptimal} of
          %% None that we are not already downloading
          %% and none that we would want to download
  