What is Selenium Python used for?

What is Selenium Python used for?

Python’s unittest module, sometimes referred to as PyUnit, is based on the XUnit framework design by Kent Beck and Erich Gamma. The framework implemented by unittest enables automated testing for your code.

Test classes in unittest, consist of two parts: code to manage test “fixtures” and the test itself. Individual tests are created by subclassing TestCase and overriding or adding methods. Here is the Simple python unittest code import unittest

class TestPythonClass(unittest.TestCase): def test_checkRelativeLocators(self): a=6 b=10 self.assertEqual(16,(a+b))

if name==“main”: unittest.main()

Refer this for kick start unittest with python