title: How to run Python test case with Appium?
body: <p>I've created simple test case using Python (in PyCharm editor) which should click on Join/Login button on iOS app, but it doesn't work. Here is the code:</p>
  
  <pre><code>from appium import webdriver
  import unittest
  import os
  
  
  class LoginTests(unittest.TestCase):
      def setUp(self):
          desired_caps = {}
          desired_caps['platformName'] = 'iOS'
          desired_caps['platformVersion'] = '11.0'
          desired_caps['deviceName'] = 'iPhone Simulator' # Run on simulator
          desired_caps['bundleId'] = 'com.matchbook.MatchbookApp'
          desired_caps['app'] = os.path.abspath('/Users/majdukovic/Library/Developer/Xcode/DerivedData/MatchBook-bgvchkbwrithuaegnjgpoffewdag/Build/Products/Debug-iphonesimulator/MatchBook.app') # Path to .app
          self.wd = webdriver.Remote('http://0.0.0.0:4723/wd/hub', desired_caps)
          self.wd.implicitly_wait(60)
          loginButton = self.wd.find_element_by_id("JOIN/LOGIN") # Button ID
          self.assertTrue(loginButton.is_displayed())
          loginButton.click()
  
  if __name__ == '__main__':
      suite = unittest.TestLoader().loadTestsFromTestCase(LoginTests)
      unittest.TextTestRunner(verbosity=2).run(suite)
  </code></pre>
  
  <p>If I run this test case it returns:
  "Ran 0 tests in 0.000s</p>
  
  <p>OK"</p>
  
  <p>Appium server is already running and app is opened. In PyCharm Preferences I've selected py.test as default test runner.</p>
  
  <p><strong>Details of my setup:</strong><br>
  macOS - HighSierra v10.13<br>
  Appium desktop app - v1.2.6<br>
  Python - v2.7.10<br>
  xCode - v9.0.1<br>
  Simulator - iPhone 8, iOS v11.0 </p>