code
stringlengths
3
6.57k
httplib2.Http()
http.request(path, 'GET', headers=headers)
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status)
self.assertEqual(self.versions_json, content)
test_get_root_path_with_openstack_header(self)
httplib2.Http()
http.request(path, 'GET', headers=headers)
self.assertEqual(http_client.OK, response.status)
self.assertEqual(self.images_json, content)
test_get_images_path_with_openstack_header(self)
httplib2.Http()
http.request(path, 'GET', headers=headers)
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status)
self.assertEqual(self.versions_json, content)
test_get_v10_images_path(self)
httplib2.Http()
http.request(path, 'GET')
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status)
test_get_v1a_images_path(self)
httplib2.Http()
http.request(path, 'GET')
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status)
test_get_va1_images_path(self)
httplib2.Http()
http.request(path, 'GET')
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status)
self.assertEqual(self.versions_json, content)
test_get_versions_path(self)
httplib2.Http()
http.request(path, 'GET')
self.assertEqual(http_client.OK, response.status)
self.assertEqual(self.versions_json, content)
test_get_versions_path_with_openstack_header(self)
httplib2.Http()
http.request(path, 'GET', headers=headers)
self.assertEqual(http_client.OK, response.status)
self.assertEqual(self.versions_json, content)
test_get_v1_versions_path(self)
httplib2.Http()
http.request(path, 'GET')
self.assertEqual(http_client.NOT_FOUND, response.status)
test_get_versions_choices(self)
httplib2.Http()
http.request(path, 'GET')
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status)
self.assertEqual(self.versions_json, content)
test_get_images_path_with_openstack_v2_header(self)
httplib2.Http()
http.request(path, 'GET', headers=headers)
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status)
self.assertEqual(self.versions_json, content)
test_get_v12_images_path(self)
httplib2.Http()
http.request(path, 'GET')
self.assertEqual(http_client.MULTIPLE_CHOICES, response.status)
self.assertEqual(self.versions_json, content)
function()
print(" ____ _____ _ ")
print(" | _ \ / ____|| | ")
print(" | |_)
print(" | __/ / _ |/ __ / __ \___ \ | __)
print(" | | / (_| |\__ \ \__ \ ___ / | |___ ( (_)
print(" |_| \_____| ___/ ___/ |____/ |_____)
function()
create_new_user(username,password)
User(username,password)
save_user(user)
user.save_user()
display_user()
User.display_user()
login_user(username,password)
Credentials.verify_user(username,password)
create_new_credential(account,userName,password)
Credentials(account,userName,password)
save_credentials(credentials)
save_details()
display_accounts_details()
Credentials.display_credentials()
delete_credential(credentials)
credentials.delete_credentials()
find_credential(account)
Credentials.find_credential(account)
check_credendtials(account)
Credentials.if_credential_exist(account)
generate_Password()
Credentials.generatePassword()
copy_password(account)
Credentials.copy_password(account)
passlocker()
print("Hello Welcome to your Accounts Password Store...\n Please enter one of the following to proceed.\n CA --- Create New Account \n LI --- Have An Account \n")
input("")
lower()
strip()
print("Sign Up")
print('*' * 50)
input("User_name: ")
print(" TP - To type your own pasword:\n GP - To generate random Password")
input()
lower()
strip()