def test_get_revsion_from_file(self):
     jar_name = "sca_testing_rev1.2.3.jar"
     path = "/tmp/soatest/%s" % jar_name
     basedir = os.path.dirname(path)
     if not os.path.exists(basedir):
         os.makedirs(basedir)
     open(path, 'a').close()
     deployed = Deployed(None,"test1",file=basedir)
     soa_helper = SoaHelper(deployed)
     eq_(soa_helper.find_revision(), "1.2.3")
 def test_get_service_name_from_soa_service_name(self):
     deployed = Deployed(None,"test1", soa_service_name="soa_service_name")
     soa_helper = SoaHelper(deployed)
     eq_(soa_helper.find_service_name(), "soa_service_name")
 def test_get_revsion_with_defined_number(self):
     deployed = Deployed(None,"test1",revision_version="1.2.3")
     soa_helper = SoaHelper(deployed)
     eq_(soa_helper.find_revision(), "1.2.3")