def test_equipment_type_created(self) -> None: fetched_equipment_type = get_or_create_equipment_type( client=self.client, name="Tp-Link T1600G", category="Router", properties=[("IP", "string", None, True)], ports_dict={}, position_list=[], ) self.assertEqual(self.equipment_type, fetched_equipment_type)
def test_equipment_type_created(self) -> None: fetched_equipment_type = get_or_create_equipment_type( client=self.client, name="Tp-Link T1600G", category="Router", properties=[ PropertyDefinition( property_name="IP", property_kind=PropertyKind.string, default_value=None, is_fixed=False, ) ], ports_dict={}, position_list=[], ) self.assertEqual(self.equipment_type, fetched_equipment_type)