Skip to content

Commit

Permalink
Merge pull request appium-boneyard#133 from Janemareth/patch-1
Browse files Browse the repository at this point in the history
Update windows10_calculatortest.py
  • Loading branch information
jlipps authored Aug 24, 2017
2 parents a8288e5 + 2eb11c2 commit 326669e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sample-code/examples/python/windows_calculatortest.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_initialize(self):
self.driver.find_element_by_name("Seven").click()

result = self.driver.find_element_by_accessibility_id("CalculatorResults")
self.assertEqual(str(result.text),"Display is 7 ")
self.assertEqual(str(result.text),"Display is 7")

def test_addition(self):
self.driver.find_element_by_name("One").click()
Expand All @@ -54,7 +54,7 @@ def test_addition(self):
self.driver.find_element_by_name("Equals").click()

result = self.driver.find_element_by_accessibility_id("CalculatorResults")
self.assertEqual(str(result.text), "Display is 8 ")
self.assertEqual(str(result.text), "Display is 8")

def test_combination(self):
self.driver.find_element_by_name("Seven").click()
Expand All @@ -68,7 +68,7 @@ def test_combination(self):
self.driver.find_element_by_name("Equals").click()

result = self.driver.find_element_by_accessibility_id("CalculatorResults")
self.assertEqual(str(result.text), "Display is 8 ")
self.assertEqual(str(result.text), "Display is 8")

def test_division(self):
self.driver.find_element_by_name("Eight").click()
Expand All @@ -79,7 +79,7 @@ def test_division(self):
self.driver.find_element_by_name("Equals").click()

result = self.driver.find_element_by_accessibility_id("CalculatorResults")
self.assertEqual(str(result.text), "Display is 8 ")
self.assertEqual(str(result.text), "Display is 8")

def test_multiplication(self):
self.driver.find_element_by_name("Nine").click()
Expand All @@ -88,7 +88,7 @@ def test_multiplication(self):
self.driver.find_element_by_name("Equals").click()

result = self.driver.find_element_by_accessibility_id("CalculatorResults")
self.assertEqual(str(result.text), "Display is 81 ")
self.assertEqual(str(result.text), "Display is 81")

def test_subtraction(self):
self.driver.find_element_by_name("Nine").click()
Expand All @@ -97,10 +97,10 @@ def test_subtraction(self):
self.driver.find_element_by_name("Equals").click()

result = self.driver.find_element_by_accessibility_id("CalculatorResults")
self.assertEqual(str(result.text), "Display is 8 ")
self.assertEqual(str(result.text), "Display is 8")



if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(SimpleCalculatorTests)
unittest.TextTestRunner(verbosity=2).run(suite)
unittest.TextTestRunner(verbosity=2).run(suite)

0 comments on commit 326669e

Please sign in to comment.