 class="p">[</span><span class="s2">&quot;1y&quot;</span><span class="p">,</span> <span class="s2">&quot;max&quot;</span><span class="p">,</span> <span class="s2">&quot;1d&quot;</span><span class="p">])</span>
    <span class="k">def</span> <span class="nf">test_extractor_get_portfolio_period</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">stockList</span><span class="p">,</span> <span class="n">periods</span><span class="p">,</span><span class="n">source</