title: How to import and use user defined enum classes in robot framework using python
body: <p>I am currently implementing some test cases in robot framework. Assertion checks that the integer is working. I want to change that to enum values. This is my basic requirement.</p>
  <p>This is the robot file that I am using (<code>TestCase.robot</code>)</p>
  <pre><code>*** Settings ***
  Library           Wrapper.py
  
  *** Test Cases ***
  TC_01
      ${rv}    Set Variable    ${0}    #${}
      Should Be Equal As Integers    ${rv}    0
  </code></pre>
  <p>In the line <code>Should Be Equal As Integers    ${rv}    0</code>, instead of this integer value <code>0</code> assertion , I want to convert that integer to some enum value.</p>
  <p>something like this.</p>
  <pre><code>Should Be Equal As Integers    ${rv}    Status.OK
  </code></pre>
  <p>where <code>Status</code> is a enum class which is defined in the <code>Wrapper.py</code>. This <code>Wrapper.py</code> is included in the <code>TestCase.robot</code> as a <code>Library</code> in this <em>robot</em> file. I can paste the content of that enum here</p>
  <pre><code>class Status(Enum):
      OK = 0
      NOT_OK = 1
  </code></pre>
  <p>so that instead of integers we can make it more readable. When I give like this I am getting error as</p>
  <pre><code>'(Status.OK)' cannot be converted to an integer: ValueError: invalid literal for int() with base 10: '(status.ok)'
  </code></pre>
  <p>Can you guys help to sort out this issue ?</p>