'Given the flavor picked in the base class setup, this finds the
opposite flavor to use for a resize test. For example, if m1.nano is
the flavor, then use m1.micro, but those are only available if Tempest
is configured. If m1.tiny, then use m1.small.'

def _pick_alternate_flavor(self):

    flavor_name = self.flavor.name
    if (flavor_name == 'm1.nano'):
        return 'm1.micro'
    if (flavor_name == 'm1.micro'):
        return 'm1.nano'
    if (flavor_name == 'm1.tiny'):
        return 'm1.small'
    if (flavor_name == 'm1.small'):
        return 'm1.tiny'
    self.fail(('Unable    to    find    alternate    for    flavor:    %s' % flavor_name))
