
from mdtraj import load
from mdtraj.testing import get_fn

def test_load_single():
    """
    Just check for any raised errors coming from loading a single file.
    """
    load(get_fn('frame0.pdb'))

def test_load_single_list():
    """
    See if a single-element list of files is successfully loaded.
    """
    load([get_fn('frame0.pdb')])

def test_load_many_list():
    """
    See if a multi-element list of files is successfully loaded.
    """
    traj = load(2 * [get_fn('frame0.pdb')], discard_overlapping_frames=False)
    assert traj.n_frames == 2

from mdtraj import load
from mdtraj.testing import get_fn

def test_load_single():
    """
    Just check for any raised errors coming from loading a single file.
    """
    load(get_fn('frame0.pdb'))

def test_load_single_list():
    """
    See if a single-element list of files is successfully loaded.
    """
    load([get_fn('frame0.pdb')])

def test_load_many_list():
    """
    See if a multi-element list of files is successfully loaded.
    """
    single = load(get_fn('frame0.pdb'))
    double = load(2 * [get_fn('frame0.pdb')], discard_overlapping_frames=False)
    assert 2 * single.n_frames == double.n_frames

Fix test for loading multiple trajectories.
Fix test for loading multiple trajectories.

- 
  from mdtraj import load
  from mdtraj.testing import get_fn
  
  def test_load_single():
      """
      Just check for any raised errors coming from loading a single file.
      """
      load(get_fn('frame0.pdb'))
  
  def test_load_single_list():
      """
      See if a single-element list of files is successfully loaded.
      """
      load([get_fn('frame0.pdb')])
  
  def test_load_many_list():
      """
      See if a multi-element list of files is successfully loaded.
      """
+     single = load(get_fn('frame0.pdb'))
-     traj = load(2 * [get_fn('frame0.pdb')], discard_overlapping_frames=False)
+     double = load(2 * [get_fn('frame0.pdb')], discard_overlapping_frames=False)
-     assert traj.n_frames == 2
+     assert 2 * single.n_frames == double.n_frames
  
Fix test for loading multiple trajectories.
## Code Before:

from mdtraj import load
from mdtraj.testing import get_fn

def test_load_single():
    """
    Just check for any raised errors coming from loading a single file.
    """
    load(get_fn('frame0.pdb'))

def test_load_single_list():
    """
    See if a single-element list of files is successfully loaded.
    """
    load([get_fn('frame0.pdb')])

def test_load_many_list():
    """
    See if a multi-element list of files is successfully loaded.
    """
    traj = load(2 * [get_fn('frame0.pdb')], discard_overlapping_frames=False)
    assert traj.n_frames == 2

## Instruction:
Fix test for loading multiple trajectories.
## Code After:
from mdtraj import load
from mdtraj.testing import get_fn

def test_load_single():
    """
    Just check for any raised errors coming from loading a single file.
    """
    load(get_fn('frame0.pdb'))

def test_load_single_list():
    """
    See if a single-element list of files is successfully loaded.
    """
    load([get_fn('frame0.pdb')])

def test_load_many_list():
    """
    See if a multi-element list of files is successfully loaded.
    """
    single = load(get_fn('frame0.pdb'))
    double = load(2 * [get_fn('frame0.pdb')], discard_overlapping_frames=False)
    assert 2 * single.n_frames == double.n_frames
