~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/tests/test_factory.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-30 00:09:33 UTC
  • mfrom: (13677.6.9 no-code-import-approval)
  • Revision ID: launchpad@pqm.canonical.com-20110830000933-7l3crw2cggvvut4x
[r=benji][bug=418932] Remove the requirement for svn and cvs imports
 to be pre-approved by a Launchpad admin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
 
346
346
    # makeCodeImport
347
347
    def test_makeCodeImportNoStatus(self):
348
 
        # If makeCodeImport is not given a review status, it defaults to NEW.
 
348
        # If makeCodeImport is not given a review status,
 
349
        # it defaults to REVIEWED.
349
350
        code_import = self.factory.makeCodeImport()
350
351
        self.assertEqual(
351
 
            CodeImportReviewStatus.NEW, code_import.review_status)
 
352
            CodeImportReviewStatus.REVIEWED, code_import.review_status)
352
353
 
353
354
    def test_makeCodeImportReviewStatus(self):
354
355
        # If makeCodeImport is given a review status, then that is the status
355
356
        # of the created import.
356
 
        status = CodeImportReviewStatus.REVIEWED
 
357
        status = CodeImportReviewStatus.SUSPENDED
357
358
        code_import = self.factory.makeCodeImport(review_status=status)
358
359
        self.assertEqual(status, code_import.review_status)
359
360