This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 docs or all OpenStack docs too.

The nova.tests.network.base Module

Base class of Unit Tests for all network models

class nova.tests.network.base.NetworkTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test cases for network code

setUp()
tearDown()
test_available_ips()

Make sure the number of available ips for the network is correct

The number of available IP addresses depends on the test environment’s setup.

Network size is set in test fixture’s setUp method.

There are ips reserved at the bottom and top of the range. services (network, gateway, CloudPipe, broadcast)

test_private_ipv6()

Make sure ipv6 is OK