~ubuntuone-pqm-team/python-swiftclient/trunk

« back to all changes in this revision

Viewing changes to tests/unit/test_shell.py

  • Committer: Gerrit Code Review
  • Author(s): Zuul
  • Date: 2019-06-28 08:13:46 UTC
  • mfrom: (578.1.1)
  • Revision ID: git-v1:4b3e33b3c28892616d42cf3f1497dd8db63c783b
Merge "Clean up warnings from newer flake8"

Show diffs side-by-side

added added

removed removed

Lines of Context:
1862
1862
        argv = ["", "tempurl", "GET", "60", '/v1/a/c',
1863
1863
                    "secret_key", "--absolute", '--prefix-based']
1864
1864
        with CaptureOutput(suppress_systemexit=True) as output:
1865
 
                swiftclient.shell.main(argv)
 
1865
            swiftclient.shell.main(argv)
1866
1866
        self.assertEqual(expected, output.err,
1867
1867
                         'Expected %r but got %r for path %r' %
1868
1868
                         (expected, output.err, '/v1/a/c'))
1872
1872
            argv = ["", "tempurl", "GET", bad_time, '/v1/a/c/o',
1873
1873
                        "secret_key", "--absolute"]
1874
1874
            with CaptureOutput(suppress_systemexit=True) as output:
1875
 
                    swiftclient.shell.main(argv)
 
1875
                swiftclient.shell.main(argv)
1876
1876
            self.assertEqual(expected, output.err,
1877
1877
                             'Expected %r but got %r for time %r' %
1878
1878
                             (expected, output.err, bad_time))