~openstack-charmers-next/charms/vivid/swift-storage/trunk

« back to all changes in this revision

Viewing changes to unit_tests/test_swift_storage_utils.py

  • Committer: Corey Bryant
  • Date: 2015-11-03 17:08:12 UTC
  • mfrom: (92.1.1 trunk)
  • Revision ID: corey.bryant@canonical.com-20151103170812-stkbmsvwxxir1oh6
[james-pages,r=corey.bryant] Add tox support for lint and unit tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
 
250
250
    def test_find_block_devices_real_world(self):
251
251
        self.is_block_device.return_value = True
252
 
        side_effect = lambda x: x in ["/dev/sdb", "/dev/sdb1"]
 
252
        side_effect = lambda x: x in ["/dev/sdb", "/dev/sdb1"] # flake8: noqa
253
253
        self.is_device_mounted.side_effect = side_effect
254
254
        with patch_open() as (_open, _file):
255
255
            _file.read.return_value = REAL_WORLD_PARTITIONS