<s> import unittest <EOL> from tests . functional import utils <EOL> class ShowTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> super ( ShowTestCase , self ) . setUp ( ) <EOL> self . rally = utils . Rally ( ) <EOL> def test_show_images ( self ) : <EOL> res = self . rally ( "<STR_LIT>" ) <EOL> cirros = "<STR_LIT>" in res <EOL> testvm = "<STR_LIT>" in res <EOL> self . assertTrue ( cirros or testvm ) <EOL> def test_show_flavors ( self ) : <EOL> res = self . rally ( "<STR_LIT>" ) <EOL> self . assertIn ( "<STR_LIT>" , res ) <EOL> def test_show_networks ( self ) : <EOL> res = self . rally ( "<STR_LIT>" ) <EOL> private = "<STR_LIT>" in res <EOL> novanetwork = "<STR_LIT>" in res <EOL> self . assertTrue ( private or novanetwork ) <EOL> def test_show_secgroups ( self ) : <EOL> res = self . rally ( "<STR_LIT>" ) <EOL> self . assertIn ( "<STR_LIT:default>" , res ) <EOL> def test_show_keypairs ( self ) : <EOL> self . rally ( "<STR_LIT>" ) </s>
