@ResourceGroupPreparer(location=LINUX_ASP_LOCATION_WEBAPP)
def test_linux_webapp_multicontainer_create(self, resource_group):
    webapp_name = self.create_random_name(prefix='webapp-linux-multi', length=24)
    plan = self.create_random_name(prefix='plan-linux-multi', length=24)
    config_file = os.path.join(TEST_DIR, 'sample-compose.yml')
    self.cmd('appservice plan create -g {} -n {} --is-linux'.format(resource_group, plan))
    self.cmd('webapp create -g {} -n {} --plan {} --multicontainer-config-file "{}" --multicontainer-config-type COMPOSE'.format(resource_group, webapp_name, plan, config_file))
    last_number_seen = 99999999
    for x in range(0, 10):
        r = requests.get('http://{}.azurewebsites.net'.format(webapp_name), timeout=240)
        self.assertTrue(('Hello World! I have been seen' in str(r.content)))
        current_number = [int(s) for s in r.content.split() if s.isdigit()][0]
        self.assertNotEqual(current_number, last_number_seen)
        last_number_seen = current_number
@ResourceGroupPreparer(location=LINUX_ASP_LOCATION_WEBAPP)
def test_linux_webapp_multicontainer_create(self, resource_group):
    webapp_name = self.create_random_name(prefix='webapp-linux-multi', length=24)
    plan = self.create_random_name(prefix='plan-linux-multi', length=24)
    config_file = os.path.join(TEST_DIR, 'sample-compose.yml')
    self.cmd('appservice plan create -g {} -n {} --is-linux'.format(resource_group, plan))
    self.cmd('webapp create -g {} -n {} --plan {} --multicontainer-config-file "{}" --multicontainer-config-type COMPOSE'.format(resource_group, webapp_name, plan, config_file))
    last_number_seen = 99999999
    for x in range(0, 10):
        r = requests.get('http://{}.azurewebsites.net'.format(webapp_name), timeout=240)
        self.assertTrue(('Hello World! I have been seen' in str(r.content)))
        current_number = [int(s) for s in r.content.split() if s.isdigit()][0]
        self.assertNotEqual(current_number, last_number_seen)
        last_number_seen = current_number