def setUp(self, plurals=None):
super(CLITestV20Base, self).setUp()<EOL>client.Client.EXTED_PLURALS.update(constants.PLURALS)<EOL>if plurals is not None:<EOL><INDENT>client.Client.EXTED_PLURALS.update(plurals)<EOL><DEDENT>self.metadata = {'<STR_LIT>': client.Client.EXTED_PLURALS}<EOL>self.mox = mox.Mox()<EOL>self.endurl = ENDURL<EOL>self.fake_stdout = FakeStdout()<EOL>self.addCleanup(mock.patch.stopall)<EOL>mock.patch('<STR_LIT>', new=self.fake_stdout).start()<EOL>mock.patch('<STR_LIT>',<EOL>new=self._find_resourceid).start()<EOL>mock.patch('<STR_LIT>',<EOL>new=self._find_resourceid).start()<EOL>self.client = client.Client(token=TOKEN, endpoint_url=self.endurl)<EOL>self.client.format = self.format<EOL>
Prepare the test environment.