title: How do I test if int value exists in Python Enum without using try/catch?
body: <p>Using the Python Enum class, is there a way to test if an Enum contains a specific int value without using try/catch?</p>
  
  <p>With the following class:</p>
  
  <pre><code>from enum import Enum
  
  class Fruit(Enum):
      Apple = 4
      Orange = 5
      Pear = 6
  </code></pre>
  
  <p>How can I test for the value 6 (returning true), or the value 7 (returning false)?</p>