Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use module variables (constants) in tests

  • Loading branch information...
commit 0cedd54055ab74e62ac106327e6379c35f6204cf 1 parent a089b64
@dtmilano authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 AndroidViewClient/tests/com/dtmilano/android/viewclient.py
View
6 AndroidViewClient/tests/com/dtmilano/android/viewclient.py
@@ -95,18 +95,12 @@ def testGetId(self):
self.assertEqual('id/button_with_id', self.view.getId())
def testTextPropertyForDifferentSdkVersions(self):
- TEXT_PROPERTY = 'text:mText'
- TEXT_PROPERTY_API_10 = 'mText'
- TEXT_PROPERTY_UI_AUTOMATOR = 'text'
VTP = { -1:TEXT_PROPERTY, 8:TEXT_PROPERTY_API_10, 10:TEXT_PROPERTY_API_10, 15:TEXT_PROPERTY, 16:TEXT_PROPERTY_UI_AUTOMATOR, 17:TEXT_PROPERTY_UI_AUTOMATOR}
for version, textProperty in VTP.items():
view = View(None, None, version)
self.assertEqual(textProperty, view.textProperty, msg='version %d' % version)
def testTextPropertyForDifferentSdkVersions_device(self):
- TEXT_PROPERTY = 'text:mText'
- TEXT_PROPERTY_API_10 = 'mText'
- TEXT_PROPERTY_UI_AUTOMATOR = 'text'
VTP = { -1:TEXT_PROPERTY, 8:TEXT_PROPERTY_API_10, 10:TEXT_PROPERTY_API_10, 15:TEXT_PROPERTY, 16:TEXT_PROPERTY_UI_AUTOMATOR, 17:TEXT_PROPERTY_UI_AUTOMATOR}
for version, textProperty in VTP.items():
device = MockDevice(version=version)
Please sign in to comment.
Something went wrong with that request. Please try again.