def TestNetworkAddRemove():
  (network1, network2) = GetNonexistentNetworks(2)

  # Add some networks of different sizes.
  # Note: Using RFC5737 addresses.
  AssertCommand(["gnt-network", "add", "--network", "192.0.2.0/30", network1])
  AssertCommand(["gnt-network", "add", "--network", "198.51.100.0/24",
                 network2])
  # Try to add a network with an existing name.
  AssertCommand(["gnt-network", "add", "--network", "203.0.133.0/24", network2],
                fail=True)

  TestNetworkList()
  TestNetworkListFields()

  AssertCommand(["gnt-network", "remove", network1])
  AssertCommand(["gnt-network", "remove", network2])

  TestNetworkList()
Does a nested loop - running time is O(n^2)
dataset/ETHPy150Open ganeti/ganeti/qa/qa_network.py/TestNetworkAddRemove--crossover with--dataset/ETHPy150Open christabor/MoAL/MOAL/maths/applied/optimization/memoization.py/dolongthing