class_docstr: Tests the Shots class.
docstr: Test that iteration over Shots works correctly
docstr_tok: ["Test","that","iteration","over","Shots","works","correctly"]
code: def test_iter(self, shots, expected):
      """Test that iteration over Shots works correctly"""
      actual = list(Shots(shots))
      assert actual == expected
  
imports: import copy
  import pytest
  from pennylane.measurements import Shots, ShotCopies
label_desc: Use image node_id 11 for calling the TestShotsConstruction obj's underlying member method code with example usage: obj.test_iter(shots, expected) without return types