summaryrefslogtreecommitdiff
path: root/tests/caseMod.py
blob: 16e49a5b7a05e6b872c9763f4b8688618debf120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import unittest
import base

class Suite(base.Base):
    def test_1(self):
        """Test case 1"""
        self.start('main')
        l1 = self.xpath('li[1]/a')
        l1.click()

        self.assertEqual("C A\n\nAgain!", self.body_text())
    def test_2(self):
        """Test case 2"""
        self.start('main')
        l1 = self.xpath('li[2]/a')
        l1.click()

        self.assertEqual("C B\n\nAgain!", self.body_text())
    def test_3(self):
        """Test case 3"""
        self.start('main')
        l1 = self.xpath('li[3]/a')
        l1.click()

        self.assertEqual("D\n\nAgain!", self.body_text())