summaryrefslogtreecommitdiff
path: root/tests/ccheckbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccheckbox.py')
-rw-r--r--tests/ccheckbox.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ccheckbox.py b/tests/ccheckbox.py
new file mode 100644
index 00000000..f2390368
--- /dev/null
+++ b/tests/ccheckbox.py
@@ -0,0 +1,15 @@
+import unittest
+import base
+
+class Suite(base.Base):
+ def test_1(self):
+ """Test case 1"""
+ self.start('main')
+ d = self.xpath('input')
+ p = self.xpath('span')
+ self.assertEqual("True 1", p.text)
+ d.click()
+ # the elements gets re-created from scratch
+ # so we must refresh our reference
+ p = self.xpath('span')
+ self.assertEqual("False 3", p.text)