<s> from novaclient import extension <EOL> from novaclient . tests . unit import utils <EOL> from novaclient . tests . unit . v2 import fakes <EOL> from novaclient . v2 . contrib import list_extensions <EOL> class ListExtensionsTests ( utils . TestCase ) : <EOL> def setUp ( self ) : <EOL> super ( ListExtensionsTests , self ) . setUp ( ) <EOL> extensions = [ <EOL> extension . Extension ( list_extensions . __name__ . split ( "<STR_LIT:.>" ) [ - <NUM_LIT:1> ] , <EOL> list_extensions ) , <EOL> ] <EOL> self . cs = fakes . FakeClient ( extensions = extensions ) <EOL> def test_list_extensions ( self ) : <EOL> all_exts = self . cs . list_extensions . show_all ( ) <EOL> self . assert_request_id ( all_exts , fakes . FAKE_REQUEST_ID_LIST ) <EOL> self . cs . assert_called ( '<STR_LIT:GET>' , '<STR_LIT>' ) <EOL> self . assertTrue ( len ( all_exts ) > <NUM_LIT:0> ) <EOL> for r in all_exts : <EOL> self . assertTrue ( len ( r . summary ) > <NUM_LIT:0> ) </s>
