~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/scripts/tests/test_lpquerydistro.py

  • Committer: Guilherme Salgado
  • Date: 2010-07-23 08:50:49 UTC
  • mfrom: (11206 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11220.
  • Revision ID: salgado@canonical.com-20100723085049-4m2tmvujxsw2ns40
mergeĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2010 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
__metaclass__ = type
65
65
        Check that:
66
66
         * return code is ONE,
67
67
         * standard output is empty
68
 
         * standard error contains the additional information about the failure.
 
68
         * standard error contains additional information about the failure.
69
69
        """
70
70
        returncode, out, err = self.runLpQueryDistro(
71
71
            extra_args=[])
103
103
        Check if:
104
104
         * return code is ONE,
105
105
         * standard output is empty
106
 
         * standard error contains the additional information about the failure.
 
106
         * standard error contains additional information about the failure.
107
107
        """
108
108
        returncode, out, err = self.runLpQueryDistro(
109
109
            extra_args=['-s', 'hoary', 'current'])
257
257
        self.assertEqual(helper.nominated_arch_indep, 'i386')
258
258
        self.assertEqual(helper.pocket_suffixes,
259
259
                         '-backports -proposed -security -updates')
260
 
 
261
 
 
262
 
def test_suite():
263
 
    return unittest.TestLoader().loadTestsFromName(__name__)