~ubuntu-branches/ubuntu/raring/maas/raring

« back to all changes in this revision

Viewing changes to src/maasserver/tests/test_auth.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-04-04 14:47:13 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20120404144713-nk3xrg5jfa9ahdhh
Tags: 0.1+bzr415+dfsg-0ubuntu1
* debian/control: Update package descriptions; Suggests maas-dhcp for maas
  and add a maas-dhcp binary.
* Add maas-dhcp package to configure a DHCP server.
  - debian/maas-dhcp.config: Add to ask debconf questions about range,
    gateway, and domain.
  - debian/maas-dhcp.postinst: Handle update of config values.
  - debian/maas-dhcp.templates: Debconf questions.
* debian/po: Update for templates.
* Add message telling MAAS URL after installation.
  - debian/maas.templates: Add message.
  - debian/maas.postinst: Display message.
* debian/maas.config: Hide dbconfig-install question.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
            make_unallocated_node(),
149
149
            ]
150
150
        self.assertItemsEqual(
151
 
            nodes, Node.objects.get_visible_nodes(factory.make_admin()))
 
151
            nodes,
 
152
            Node.objects.get_nodes(
 
153
                factory.make_admin(), NODE_PERMISSION.VIEW))
152
154
 
153
155
    def test_user_sees_own_nodes_and_unowned_nodes(self):
154
156
        user = factory.make_user()
157
159
        unowned_node = make_unallocated_node()
158
160
        self.assertItemsEqual(
159
161
            [own_node, unowned_node],
160
 
            Node.objects.get_visible_nodes(own_node.owner))
 
162
            Node.objects.get_nodes(own_node.owner, NODE_PERMISSION.VIEW))