<s> import uuid <EOL> from functional . common import test <EOL> class FlavorTests ( test . TestCase ) : <EOL> """<STR_LIT>""" <EOL> NAME = uuid . uuid4 ( ) . hex <EOL> HEADERS = [ '<STR_LIT:Name>' ] <EOL> FIELDS = [ '<STR_LIT:name>' ] <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> opts = cls . get_show_opts ( cls . FIELDS ) <EOL> raw_output = cls . openstack ( '<STR_LIT>' + cls . NAME + opts ) <EOL> expected = cls . NAME + '<STR_LIT:\n>' <EOL> cls . assertOutput ( expected , raw_output ) <EOL> @ classmethod <EOL> def tearDownClass ( cls ) : <EOL> raw_output = cls . openstack ( '<STR_LIT>' + cls . NAME ) <EOL> cls . assertOutput ( '<STR_LIT>' , raw_output ) <EOL> def test_flavor_list ( self ) : <EOL> opts = self . get_list_opts ( self . HEADERS ) <EOL> raw_output = self . openstack ( '<STR_LIT>' + opts ) <EOL> self . assertIn ( "<STR_LIT>" , raw_output ) <EOL> self . assertIn ( self . NAME , raw_output ) <EOL> def test_flavor_show ( self ) : <EOL> opts = self . get_show_opts ( self . FIELDS ) <EOL> raw_output = self . openstack ( '<STR_LIT>' + self . NAME + opts ) <EOL> self . assertEqual ( self . NAME + "<STR_LIT:\n>" , raw_output ) <EOL> def test_flavor_properties ( self ) : <EOL> opts = self . get_show_opts ( [ '<STR_LIT>' ] ) <EOL> raw_output = self . openstack ( <EOL> '<STR_LIT>' + self . NAME <EOL> ) <EOL> self . assertEqual ( '<STR_LIT>' , raw_output ) <EOL> raw_output = self . openstack ( '<STR_LIT>' + self . NAME + opts ) <EOL> self . assertEqual ( "<STR_LIT>" , raw_output ) <EOL> raw_output = self . openstack ( <EOL> '<STR_LIT>' + self . NAME <EOL> ) <EOL> self . assertEqual ( '<STR_LIT>' , raw_output ) <EOL> raw_output = self . openstack ( '<STR_LIT>' + self . NAME + opts ) <EOL> self . assertEqual ( "<STR_LIT>" , raw_output ) </s>
