<s> from novaclient import extension <EOL> from novaclient . tests . unit import utils <EOL> from novaclient . tests . unit . v2 . contrib import fakes <EOL> from novaclient . v2 . contrib import cells <EOL> class CellsExtensionTests ( utils . TestCase ) : <EOL> def setUp ( self ) : <EOL> super ( CellsExtensionTests , self ) . setUp ( ) <EOL> extensions = [ <EOL> extension . Extension ( cells . __name__ . split ( "<STR_LIT:.>" ) [ - <NUM_LIT:1> ] , <EOL> cells ) , <EOL> ] <EOL> self . cs = fakes . FakeClient ( extensions = extensions ) <EOL> def test_get_cells ( self ) : <EOL> cell_name = '<STR_LIT>' <EOL> cell = self . cs . cells . get ( cell_name ) <EOL> self . assert_request_id ( cell , fakes . FAKE_REQUEST_ID_LIST ) <EOL> self . cs . assert_called ( '<STR_LIT:GET>' , '<STR_LIT>' % cell_name ) <EOL> def test_get_capacities_for_a_given_cell ( self ) : <EOL> cell_name = '<STR_LIT>' <EOL> ca = self . cs . cells . capacities ( cell_name ) <EOL> self . assert_request_id ( ca , fakes . FAKE_REQUEST_ID_LIST ) <EOL> self . cs . assert_called ( '<STR_LIT:GET>' , '<STR_LIT>' % cell_name ) <EOL> def test_get_capacities_for_all_cells ( self ) : <EOL> ca = self . cs . cells . capacities ( ) <EOL> self . assert_request_id ( ca , fakes . FAKE_REQUEST_ID_LIST ) <EOL> self . cs . assert_called ( '<STR_LIT:GET>' , '<STR_LIT>' ) </s>
