class_docstr: Tests the Shots class.
docstr: Tests the constructor when shots is a Sequence[int].
docstr_tok: ["Tests","the","constructor","when","shots","is","a","Sequence","[","int","]","."]
code: def test_sequence(self, shot_list, expected, total):
      """Tests the constructor when shots is a Sequence[int]."""
      shots = Shots(shot_list)
      assert shots.shot_vector == expected
      assert shots.total_shots == total
  
imports: import copy
  import pytest
  from pennylane.measurements import Shots, ShotCopies
label_desc: Use image node_id 13 for calling the TestShotsConstruction obj's underlying member method code with example usage: obj.test_sequence(shot_list, expected, total) without return types