~leonardr/launchpadlib/release

« back to all changes in this revision

Viewing changes to src/launchpadlib/tests/test_launchpad.py

  • Committer: Brad Crittenden
  • Date: 2009-09-29 14:54:55 UTC
  • Revision ID: bac@canonical.com-20090929145455-ek6ar8zrm7qwfhbl
[r=bac] Added a short service root name for production.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
__metaclass__ = type
20
20
 
21
 
import atexit
22
21
import os
23
 
import os.path
24
22
import shutil
25
23
import stat
26
24
import tempfile
220
218
            launchpad.passed_in_kwargs['service_root'],
221
219
            'foo')
222
220
 
 
221
    def test_short_service_names(self):
 
222
        # Ensure the short service names are all supported.
 
223
        expected = ['production', 'edge', 'staging', 'dogfood', 'dev']
 
224
        self.assertEqual(
 
225
            sorted(Launchpad.service_roots.keys()),
 
226
            sorted(expected))
 
227
 
223
228
 
224
229
def test_suite():
225
230
    return unittest.TestLoader().loadTestsFromName(__name__)