title: Python unittest passing arguments
body: <p>In Python, how would I pass an argument from the command line to a unittest function?</p>
  <p>Here is the code so far… I know it's wrong.</p>
  <pre><code>class TestingClass(unittest.TestCase):
  
      def testEmails(self):
          assertEqual(email_from_argument, &quot;my_email@example.com&quot;)
  
  
  if __name__ == &quot;__main__&quot;:
      unittest.main(argv=[sys.argv[1]])
      email_from_argument = sys.argv[1]
  </code></pre>