+ createportwithexistingname1 = json.loads(createportwithexistingnameresponse1.content)["port"]
+ createportwithexistingname2 = json.loads(createportwithexistingnameresponse2.content)["port"]
+ self.assertEqual(createportwithexistingnameresponse1.status_code, 201)
+ self.assertEqual(createportwithexistingnameresponse2.status_code, 201)
+ self.assertEqual(createportwithexistingname1["name"], "duplicate_port_name")
+ self.assertEqual(createportwithexistingname2["name"], "duplicate_port_name")
+ self.assertNotEqual(createportwithexistingname1["id"], createportwithexistingname2["id"], "Duplicate port should have different id")