summaryrefslogtreecommitdiff
path: root/tests/bool.py
blob: e5fedf19be542803dcfabdb2758ff708c2ceb2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import unittest
import base

class Suite(base.Base):
    def test_1(self):
        """Test case 1"""
        self.start('main')
        l = self.xpath('li[1]/a')
        l.click()
        self.assertEqual("Yes!", self.body_text())

    def test_2(self):
        """Test case 2"""
        self.start('main')
        l = self.xpath('li[2]/a')
        l.click()
        self.assertEqual("No!", self.body_text())