tempest/tempest/common
Masayuki Igawa 0c0f0143e1
Use sequence directly instead of using len()
This commit makes to use sequence directly instead of using
len(SEQUENCE). The original code works correctly, and it's really
straight forward. However, PEP8 recommends like below[1]. And it
makes code more simple, too.

```
For sequences, (strings, lists, tuples), use the fact that empty
sequences are false.

Yes: if not seq:
     if seq:

No: if len(seq):
    if not len(seq):
```

[1] https://www.python.org/dev/peps/pep-0008/#programming-recommendations

Change-Id: I8d41e16d82b1b3860a98e5217cb7a541fc83b907
2017-04-17 15:03:04 +09:00
..
utils Merge "Remove set_mac_address from old remote_client" 2017-03-30 06:24:34 +00:00
__init__.py Changes the namespace from storm to tempest, as well as adding addition tests and improvements 2011-12-06 16:48:03 -06:00
compute.py Use sequence directly instead of using len() 2017-04-17 15:03:04 +09:00
credentials_factory.py Remove an unused variable in the BaseTestCase class 2017-01-04 19:17:35 +01:00
custom_matchers.py Replace six.iteritems with dict.items 2017-01-03 23:17:34 +00:00
dynamic_creds.py Add skip if public_network_id is not specified 2017-02-15 15:08:24 +08:00
fixed_network.py Introduce flake8-import-order 2017-02-13 17:16:18 +09:00
identity.py Use tempest.lib code in tempest 2016-02-24 10:43:59 -05:00
image.py Replace six.iteritems with dict.items 2017-01-03 23:17:34 +00:00
preprov_creds.py Use sequence directly instead of using len() 2017-04-17 15:03:04 +09:00
tempest_fixtures.py Update all Oslo module use 2015-03-11 21:07:56 +00:00
validation_resources.py Use tempest.lib data_utils - volume 2017-03-13 12:08:04 +00:00
waiters.py Rename server arg in wait_for_interface_status method 2017-04-03 11:37:28 -04:00