title: Name 'pytest' is not defined. how to run testpy?
body: <p>I have installed python with conda.</p>
  
  <pre><code>pytest --version
  This is pytest version 3.0.5, imported from /home/fabiano/anaconda3/lib/python3.6/site-packages/pytest.py
  </code></pre>
  
  <p>My test script</p>
  
  <pre><code>def tc1():
      given="49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"
      expected=b"SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t"
      assert base64.b64encode(bytes.fromhex(given)) == expected
  </code></pre>
  
  <p>I have imported pytest</p>
  
  <pre><code>import pytest
  </code></pre>
  
  <p>I am trying some stuff with pytest.But when I try from Python shell,I  have problems like this</p>
  
  <pre><code>testset.py
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  NameError: name 'testset' is not defined
  </code></pre>
  
  <p>In my shell
  pytest</p>
  
  <pre><code>&lt;module 'pytest' from '/home/fabiano/anaconda3/lib/python3.6/site-packages/pytest.py'&gt;
  </code></pre>
  
  <p>Where should I save testset.py file?</p>