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

« back to all changes in this revision

Viewing changes to src/maasserver/api/tests/test_zones.py

merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2013 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2013-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 physical `Zone` API."""
58
58
            httplib.FORBIDDEN, response.status_code, response.content)
59
59
 
60
60
    def test_list_returns_zone_list(self):
61
 
        [factory.make_zone(sortable_name=True) for i in range(3)]
 
61
        [factory.make_Zone(sortable_name=True) for i in range(3)]
62
62
        zones = Zone.objects.all()
63
63
        response = self.client.get(
64
64
            reverse('zones_handler'),
78
78
             for zone in parsed_result])
79
79
 
80
80
    def test_list_returns_sorted_zone_list(self):
81
 
        [factory.make_zone(sortable_name=True) for i in range(10)]
 
81
        [factory.make_Zone(sortable_name=True) for i in range(10)]
82
82
        zones = Zone.objects.all()
83
83
        response = self.client.get(
84
84
            reverse('zones_handler'),