def test_act_symptom_groups_should_click_next_group(self):
     """ act_symptom_groups should click on group by index of counter """
     group_mock1 = Mock()
     group_mock2 = Mock()
     act_symptom_groups(self.driver_mock, [group_mock1, group_mock2],
                        (group_mock1, 1))
     group_mock2.click.assert_called_once()
 def test_act_symptom_groups_should_return_first_group_and_counter_if_acc_0(
         self):
     """ act_symptom_groups should return first group and 1 if acc is 0 """
     group_mock = Mock()
     symptom_act = act_symptom_groups(self.driver_mock, [group_mock], 0)
     self.assertTrue(symptom_act[0] is group_mock)
     self.assertEqual(symptom_act[1], 1)
 def test_act_symptom_groups_should_return_next_group_and_counter(self):
     """ act_symptom_groups should return second group and 2 if acc counter is 1 """
     group_mock1 = Mock()
     group_mock2 = Mock()
     symptom_act = act_symptom_groups(self.driver_mock,
                                      [group_mock1, group_mock2],
                                      (group_mock1, 1))
     self.assertTrue(symptom_act[0] is group_mock2)
     self.assertEqual(symptom_act[1], 2)
 def test_act_symptom_groups_should_return_false_if_counter_more_than_group_amount(
         self):
     """ act_symptom_groups should return False if acc[1] is more than
     length of group elements passed """
     result = act_symptom_groups(self.driver_mock, [], (Mock(), 1))
     self.assertFalse(result)
 def test_act_symptom_groups_should_click_first_group(self):
     """ act_symptom_groups should click on first group """
     group_mock = Mock()
     act_symptom_groups(self.driver_mock, [group_mock], 0)
     group_mock.click.assert_called_once()