'This is a basic scenario test:
Steps:
1) Login to Horizon Dashboard as admin user
2) Navigate to Project > Compute > Access & Security > API Access tab
3) Click on "Download OpenStack RC File v2.0" button
4) File named by template "<tenant_name>-openrc.sh" must be downloaded
5) Check that username, tenant name and tenant id correspond to current
username, tenant name and tenant id'

def test_download_rc_v2_file(self):

    api_access_page = self.home_pg.go_to_compute_accessandsecurity_apiaccesspage()
    api_access_page.download_openstack_rc_file(2, self._directory, self._openrc_template)
    cred_dict = api_access_page.get_credentials_from_file(2, self._directory, self._openrc_template)
    self.assertEqual(cred_dict, self.actual_dict)
