def test_positive_remove_os(self): """Check if operating system can be removed from media @Feature: Medium - Remove operating system @Assert: Operating system removed """ medium = make_medium() os = make_os() Medium.add_operating_system({ 'id': medium['id'], 'operatingsystem-id': os['id'], }) medium = Medium.info({'id': medium['id']}) self.assertIn(os['title'], medium['operating-systems']) Medium.remove_operating_system({ 'id': medium['id'], 'operatingsystem-id': os['id'], }) medium = Medium.info({'id': medium['id']}) self.assertNotIn(os['name'], medium['operating-systems'])
def test_positive_remove_os(self): """Check if operating system can be removed from media :id: 23b5b55b-3624-440c-8001-75c7c5a5a004 :expectedresults: Operating system removed :CaseLevel: Integration """ medium = make_medium() os = make_os() Medium.add_operating_system({ 'id': medium['id'], 'operatingsystem-id': os['id'], }) medium = Medium.info({'id': medium['id']}) self.assertIn(os['title'], medium['operating-systems']) Medium.remove_operating_system({ 'id': medium['id'], 'operatingsystem-id': os['id'], }) medium = Medium.info({'id': medium['id']}) self.assertNotIn(os['name'], medium['operating-systems'])
def test_positive_remove_os(self): """Check if Medium can be associated with operating system and then removed from media :id: 23b5b55b-3624-440c-8001-75c7c5a5a004 :expectedresults: Operating system removed :CaseLevel: Integration """ medium = make_medium() os = make_os() Medium.add_operating_system({ 'id': medium['id'], 'operatingsystem-id': os['id'] }) medium = Medium.info({'id': medium['id']}) assert os['title'] in medium['operating-systems'] Medium.remove_operating_system({ 'id': medium['id'], 'operatingsystem-id': os['id'] }) medium = Medium.info({'id': medium['id']}) assert os['name'] not in medium['operating-systems']
def test_positive_remove_os(self): """Check if operating system can be removed from media :id: 23b5b55b-3624-440c-8001-75c7c5a5a004 :expectedresults: Operating system removed :CaseLevel: Integration """ medium = make_medium() os = make_os() Medium.add_operating_system({ 'id': medium['id'], 'operatingsystem-id': os['id'], }) medium = Medium.info({'id': medium['id']}) self.assertIn(os['title'], medium['operating-systems']) Medium.remove_operating_system({ 'id': medium['id'], 'operatingsystem-id': os['id'], }) medium = Medium.info({'id': medium['id']}) self.assertNotIn(os['name'], medium['operating-systems'])