I am writing a test case using selenium web driver for python. Test case has multiple methods like :
class Test(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        cls.driver1 = webdriver.Firefox()
        cls.driver1.maximize_window()
    def test_1(self):
        .....
        .....
    def test_2(self):
        ....
        ....
    @classmethod
    def tearDownClass(cls):
        cls.driver1.quit()
When i try to run the file from pycharm or terminal it executes the methods randomly. I want a sequential execution, so test_1() should run before test_2(). Please help me.. Thanks in advance.