~rvb/maas/transaction-1.7-bug-1409852

« back to all changes in this revision

Viewing changes to src/maasserver/clusterrpc/tests/test_power_parameters.py

merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2012, 2013 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2012-2014 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Tests for power parameters."""
58
58
 
59
59
    def test_render_template(self):
60
60
        params = self.make_random_parameters()
61
 
        node = factory.make_node(power_type=self.power_type)
 
61
        node = factory.make_Node(power_type=self.power_type)
62
62
        params.update(node.get_effective_power_parameters())
63
63
        # ip_address is determined by querying the ARP cache,
64
64
        # hence in this test the value does not matter.