~ubuntu-branches/ubuntu/saucy/maas/saucy-proposed

« back to all changes in this revision

Viewing changes to src/maastesting/tests/test_fixtures.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-08-28 11:17:44 UTC
  • mfrom: (1.2.14)
  • Revision ID: package-import@ubuntu.com-20130828111744-a8hqmsmvvc1wnanc
Tags: 1.4+bzr1655+dfsg-0ubuntu1
* New Upstream release. (LP: #1218526)
* debian/control:
  - Depends on python-djorm-ext-pgarray, python-curtin,
    python-simplestreams, ubuntu-cloud-keyring.
  - Depends on maas-dns, maas-dhcp to get them seeded and
    into main (LP: #1227353)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2012 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2012, 2013 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 `maastesting.fixtures`."""
20
20
    ProxiesDisabledFixture,
21
21
    TempWDFixture,
22
22
    )
23
 
from maastesting.testcase import TestCase
24
 
 
25
 
 
26
 
class TestProxiedDisabledFixture(TestCase):
 
23
from maastesting.testcase import MAASTestCase
 
24
 
 
25
 
 
26
class TestProxiedDisabledFixture(MAASTestCase):
27
27
    """Tests for :class:`ProxiesDisabledFixture`."""
28
28
 
29
29
    def test_removes_http_proxy_from_environment(self):
47
47
        self.assertEqual(https_proxy, os.environ.get("https_proxy"))
48
48
 
49
49
 
50
 
class TestTempWDFixture(TestCase):
 
50
class TestTempWDFixture(MAASTestCase):
51
51
 
52
52
    def test_changes_dir_and_cleans_up(self):
53
53
        orig_cwd = os.getcwd()