'Scenario: Admins can delete other inactive users
Given I have opened a new course in Studio
And I am viewing the course team settings.
When I add other user to the course team,
And then delete that other user from the course team.
And other user logs in
Then he/she does not see the course on page'

def test_admins_can_delete_other_inactive_users(self):

    self.page.add_user_to_course(self.other_user.get('email'))
    self._assert_user_present(self.other_user, present=True)
    user_info = {'username': self.other_user.get('username'), 'email': self.other_user.get('email'), 'password': self.other_user.get('password'), 'is_active': False}
    self._update_user(user_info)
    self._go_to_course_team_page()
    self.page.delete_user_from_course(self.other_user.get('email'))
    self._assert_user_present(self.other_user, present=False)
