Fixed the cli failures in jenkins - user,content_view,medium, partition-table and gpg key tests

please review it 
thanks

The tests fixed are as follows : 
tests.foreman.cli.test_partitiontable.TestPartitionTableDelete.test_removeoperatingsystem_ptable
tests.foreman.cli.test_user.User.test_positive_create_user_4_1___________________example_com 
tests.foreman.cli.test_contentviews.TestContentView.test_cv_publish_composite
tests.foreman.cli.test_medium.TestMedium.test_removeoperatingsystem_medium 
tests.foreman.cli.test_gpgkey.TestGPGKey.test_negative_create_1_1___name___u_75381739207726821179__
tests.foreman.cli.test_gpgkey.TestGPGKey.test_positive_create_1_1___name___u_yKAy2BhxJS__ 
tests.foreman.cli.test_gpgkey.TestGPGKey.test_positive_create_2_1___name___u__U000dbd5f_U000c7d84_U0005421a_U0010afb8_U000182a8_U001073fe_U0006bf1