From: Cedric Brandily Date: Sat, 22 Aug 2015 09:49:24 +0000 (+0200) Subject: Move docstring to FakeMachineBase X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5dbdf1102602a2fbb83acc2644dc737ac420fae3;p=openstack-build%2Fneutron-build.git Move docstring to FakeMachineBase This change moves FakeMachine docstring to FakeMachineBase because it is valid for all FakeMachineBase subclasses. Change-Id: Ic30098f7d84dd3a5d6c5f7ff675d3f6e7b0a4cae --- diff --git a/neutron/tests/common/machine_fixtures.py b/neutron/tests/common/machine_fixtures.py index ebad9e120..e61ece189 100644 --- a/neutron/tests/common/machine_fixtures.py +++ b/neutron/tests/common/machine_fixtures.py @@ -20,6 +20,22 @@ from neutron.tests.common import net_helpers class FakeMachineBase(fixtures.Fixture): + """Create a fake machine. + + :ivar bridge: bridge on which the fake machine is bound + :ivar ip_cidr: fake machine ip_cidr + :type ip_cidr: str + :ivar ip: fake machine ip + :type ip: str + :ivar gateway_ip: fake machine gateway ip + :type gateway_ip: str + + :ivar namespace: namespace emulating the machine + :type namespace: str + :ivar port: port binding the namespace to the bridge + :type port: IPDevice + """ + def __init__(self): self.port = None @@ -52,21 +68,6 @@ class FakeMachineBase(fixtures.Fixture): class FakeMachine(FakeMachineBase): - """Create a fake machine. - - :ivar bridge: bridge on which the fake machine is bound - :ivar ip_cidr: fake machine ip_cidr - :type ip_cidr: str - :ivar ip: fake machine ip - :type ip: str - :ivar gateway_ip: fake machine gateway ip - :type gateway_ip: str - - :ivar namespace: namespace emulating the machine - :type namespace: str - :ivar port: port binding the namespace to the bridge - :type port: IPDevice - """ def __init__(self, bridge, ip_cidr, gateway_ip=None): super(FakeMachine, self).__init__()