~james-w/udd/management-commands

« back to all changes in this revision

Viewing changes to udd/tests/test_mass_import.py

  • Committer: James Westby
  • Date: 2011-12-13 21:09:23 UTC
  • mfrom: (557.1.1 drop_email_failures)
  • Revision ID: james.westby@canonical.com-20111213210923-tfrirlx3xbwmi70u
Merged drop_email_failures into management-commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from udd import tests
 
2
 
 
3
from udd.scripts import mass_import
 
4
 
 
5
 
 
6
class TestImporter(tests.TestCaseWithConfig):
 
7
 
 
8
    def test_expanded_import_command(self):
 
9
        imp = mass_import.Importer(mass_import.create_logger(), 'foo', '12',
 
10
                                   _command='import-package {package}')
 
11
        self.assertEquals(['import-package', 'foo'], imp.args)