~simplestreams-dev/simplestreams/artful

« back to all changes in this revision

Viewing changes to tests/unittests/test_command_hook_mirror.py

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2014-08-22 10:06:19 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20140822100619-thgyplp9ch67sk8m
Tags: 0.1.0~bzr354-0ubuntu1
* New upstream snapshot.
  - support progress output in the glance mirror (LP: #1340983)
  - upstream uses pyflakes instead of pylint

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
        self.assertRaises(TypeError, chm.CommandHookMirror, {})
14
14
 
15
15
    def test_init_with_load_products_works(self):
16
 
        _mirror = chm.CommandHookMirror({'load_products': 'true'})
 
16
        chm.CommandHookMirror({'load_products': 'true'})
17
17
 
18
18
    def test_stream_load_empty(self):
19
19
 
55
55
                             if f == ['insert-products']]), 2)
56
56
 
57
57
    def _run_command(self, cmd, env=None, capture=False, rcs=None):
58
 
        _pylint = (env, capture, rcs)
59
58
        self._run_commands.append(cmd)
60
59
        rc = 0
61
60
        output = ''