def test_instance_deletion(self):
     _, result = SQLStore.delete_service_instance(self.id_name)
     self.assertEqual(self.result, 200, msg='Assert Instance Deleted')
     exists = Adapter.exists_in_db(self.id_name)
     self.assertFalse(exists, msg='Assert Instance does NOT Exist.')
     model_sql = Adapter.find_by_id_name(self.id_name)
     self.assertIsNone(model_sql)
 def tearDown(self):
     SQLStore.delete_service_instance(Adapter.get_id(self.test_model))
     ServiceTypeAdapter.delete(self.service.id)
 def test_delete_instance_nonexistent(self):
     _, result = SQLStore.delete_service_instance(self.id_name)
     _, result = SQLStore.delete_service_instance(self.id_name)
     self.assertEqual(result, 500, msg='Assert Delete Instance Nonexistent')