'Tests the flavor Edit row action functionality'

def test_flavor_update_info(self):

    self._create_flavor(self.FLAVOR_NAME)
    add_up = random.randint(1, 10)
    old_vcpus = self.flavors_page.get_flavor_vcpus(self.FLAVOR_NAME)
    old_ram = self.flavors_page.get_flavor_ram(self.FLAVOR_NAME)
    old_disk = self.flavors_page.get_flavor_disk(self.FLAVOR_NAME)
    self.flavors_page.update_flavor_info(self.FLAVOR_NAME, add_up)
    self.assertTrue(self.flavors_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(self.flavors_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(self.flavors_page.is_flavor_present(('edited-' + self.FLAVOR_NAME)))
    new_vcpus = self.flavors_page.get_flavor_vcpus(('edited-' + self.FLAVOR_NAME))
    new_ram = self.flavors_page.get_flavor_ram(('edited-' + self.FLAVOR_NAME))
    new_disk = self.flavors_page.get_flavor_disk(('edited-' + self.FLAVOR_NAME))
    self.assertIsNot(old_disk, new_disk)
    self.assertIsNot(old_ram, new_ram)
    self.assertIsNot(old_vcpus, new_vcpus)
    self._delete_flavor(('edited-' + self.FLAVOR_NAME))
