old_contents: import unittest
  import os, os.path
  
  from usecases.TestUtils import *
  
  class testBasicVmLifecycle(unittest.TestCase):
  
      vm_image_info = getVmImageInfo()
      marketplaceId = vm_image_info['ubuntu']['id']
  
      def setUp(self):
          self.vm_id, self.vm_ip = stratusRunInstance(self.marketplaceId)
  
      def tearDown(self):
          stratusKillInstance(self.vm_id)
  
      def test_usecase(self):
          waitVmRunningOrTimeout(self.vm_id, timeout=(10*60))
  
  def suite():
      return unittest.TestLoader().loadTestsFromTestCase(testBasicVmLifecycle)
  
new_contents: import unittest
  import os, os.path
  
  from usecases.TestUtils import *
  
  class testBasicVmLifecycle(unittest.TestCase):
  
      vm_image_info = getVmImageInfo()
      marketplaceId = vm_image_info['ubuntu']['id']
  
      def setUp(self):
          self.vm_id, self.vm_ip = stratusRunInstance(self.marketplaceId)
  
      def tearDown(self):
          stratusKillInstance(self.vm_id)
  
      def test_usecase(self):
          waitVmRunningOrTimeout(self.vm_id, timeout=(15*60))
  
  def suite():
      return unittest.TestLoader().loadTestsFromTestCase(testBasicVmLifecycle)
  
subject: Update usecases/testBasicVmLifecycleUbuntu.py