docstr: Requirement objects created from equivalent strings should be equal,
  even though their string representation will not.
docstr_tok: ["Requirement","objects","created","from","equivalent","strings","should","be","equal",",","even","though","their","string","representation","will","not","."]
code: def test_equivalent_reqs_equal_hashes_unequal_strings(
      self, dep1: str, dep2: str
  ) -> None:
      """Requirement objects created from equivalent strings should be equal,
      even though their string representation will not."""
      # GIVEN / WHEN
      req1, req2 = Requirement(dep1), Requirement(dep2)
  
      assert req1 == req2
      assert hash(req1) == hash(req2)
      assert str(req1) != str(req2)
  
imports: from typing import Optional, Set
  import pytest
  from packaging.markers import Marker
  from packaging.requirements import InvalidRequirement, Requirement
  from packaging.specifiers import SpecifierSet
label_desc: Use image node_id 6 for calling the TestRequirementBehaviour obj's underlying member method code with example usage: obj.test_equivalent_reqs_equal_hashes_unequal_strings(dep1, dep2) without return types