def setUp(self):
original_intersect = nexus_db_v2._get_free_vpcids_on_switches<EOL>def new_get_free_vpcids_on_switches(nexus_ips):<EOL><INDENT>intersect = list(original_intersect(nexus_ips))<EOL>intersect.sort()<EOL>return intersect<EOL><DEDENT>mock.patch.object(nexus_db_v2,<EOL>'<STR_LIT>',<EOL>new=new_get_free_vpcids_on_switches).start()<EOL>super(TestCiscoNexusBaremetalReplay, self).setUp()<EOL>self.results = TestCiscoNexusBaremetalReplayResults()<EOL>
Sets up mock driver, and switch and credentials dictionaries.