diff options
author | Artyom Shalkhakov <artyom.shalkhakov@gmail.com> | 2018-05-08 16:03:24 +0600 |
---|---|---|
committer | Artyom Shalkhakov <artyom.shalkhakov@gmail.com> | 2018-05-08 16:03:24 +0600 |
commit | c293746d4c34ccb7abb8af41f7d05940aa7e4076 (patch) | |
tree | 052e8bf308ba2e2f8de626ec1426f9a3841728a3 /tests/entities.py | |
parent | e1ae0ce918c234cbb0b5a6ee72e0443bd04d4127 (diff) |
Adding Selenium-based checking to tests.
Diffstat (limited to 'tests/entities.py')
-rw-r--r-- | tests/entities.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/entities.py b/tests/entities.py new file mode 100644 index 00000000..d9087cbf --- /dev/null +++ b/tests/entities.py @@ -0,0 +1,14 @@ +import unittest +import base + +class Suite(base.Base): + def test_1(self): + """Test case 1""" + self.start() + p = self.xpath('p[1]') + self.assertEqual('Hello world! & so on, © me today (8 €)', p.text) + p = self.xpath('p[2]') + self.assertEqual('♠ ♣ ♥ ♦', p.text) + p = self.xpath('p[3]') + self.assertEqual('† DANGER †', p.text) + |