title: How to write a pytest or unittest on my code?
body: <p>I am new to unit testing. I am trying to test if function is called and if the schedule time is correct on the below.</p>
  <blockquote>
  <p>The python filename is #schedule.py</p>
  </blockquote>
  <pre><code>def screenshot():
     ob=Screenshot_Clipping.Screenshot()
     driver.get(url)
     img_url=ob.full_Screenshot(driver, save_path = path)
     email_it(path)
     driver.close()
  screenshot()
  </code></pre>