1
# Copyright 2011 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
"""Tests for the builders webservice ."""
8
from canonical.testing.layers import DatabaseFunctionalLayer
9
from canonical.launchpad.testing.pages import LaunchpadWebServiceCaller
10
from lp.testing import (
16
class TestBuildersCollection(TestCaseWithFactory):
17
layer = DatabaseFunctionalLayer
20
super(TestBuildersCollection, self).setUp()
21
self.webservice = LaunchpadWebServiceCaller()
22
# webservice doesn't like dangling interactions.
25
def test_getBuildQueueSizes(self):
26
results = self.webservice.named_get(
27
'/builders', 'getBuildQueueSizes', api_version='devel')
29
['nonvirt', 'virt'], sorted(results.jsonBody().keys()))