Exemple #1
0
 def setUpTestData(cls):
     cls.autonomous_system = AutonomousSystem.objects.create(
         asn=65537, name="Test", irr_as_set="AS-MOCKED"
     )
     cls.internet_exchange = InternetExchange.objects.create(
         local_autonomous_system=cls.autonomous_system, name="Test", slug="test"
     )
     load_peeringdb_data()
 def setUpTestData(cls):
     AutonomousSystem.objects.bulk_create([
         AutonomousSystem(asn=65536,
                          name="Example 1",
                          irr_as_set="AS-MOCKED"),
         AutonomousSystem(asn=64496,
                          name="Example 2",
                          irr_as_set="AS-EXAMPLE-2"),
         AutonomousSystem(asn=64497,
                          name="Example 3",
                          irr_as_set="AS-EXAMPLE-3"),
     ])
     cls.autonomous_system = AutonomousSystem.objects.get(asn=65536)
     load_peeringdb_data()
Exemple #3
0
 def setUpTestData(cls):
     cls.autonomous_system = AutonomousSystem.objects.create(
         asn=65537, name="Test", irr_as_set="AS-MOCKED"
     )
     load_peeringdb_data()