def test_equipment_created(self) -> None: equipment = add_equipment( self.client, "TPLinkRouter", "Tp-Link T1600G", self.location, {"IP": "127.0.0.1"}, ) fetched_equipment = get_equipment(self.client, "TPLinkRouter", self.location) self.assertEqual(equipment, fetched_equipment)
def test_equipment_created(self) -> None: fetched_equipment = get_equipment(client=self.client, name="TPLinkRouter", location=self.location) self.assertEqual(self.equipment, fetched_equipment)
def test_equipment_with_external_id_created(self) -> None: fetched_equipment = get_equipment(client=self.client, name="TPLinkRouterExt", location=self.location) self.assertEqual(self.equipment_with_external_id, fetched_equipment)