tempest/tempest/api/compute
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
..
admin Use sequence directly instead of using len() 2017-04-17 15:03:04 +09:00
certificates Switch to decorators.idempotent_id on compute.* 2017-01-27 17:35:38 -08:00
flavors Use tempest.lib data_utils - compute 2017-03-10 10:30:30 -08:00
floating_ips Use tempest.lib data_utils - compute 2017-03-10 10:30:30 -08:00
images Ensure compute features enabled in test_images 2017-03-22 15:23:15 -05:00
keypairs Use tempest.lib data_utils - compute 2017-03-10 10:30:30 -08:00
limits Remove unnecessary int casting 2017-02-21 11:21:57 +08:00
security_groups Remove unused CONF and LOG 2017-03-29 15:13:22 +08:00
servers Use sequence directly instead of using len() 2017-04-17 15:03:04 +09:00
volumes Move the `related_bug` decorator from test.py to tempest/lib 2017-04-13 15:51:22 +02:00
__init__.py remove unneeded __init__ file 2013-12-22 20:40:31 -05:00
api_microversion_fixture.py Migrated microversion testing framework to tempest/lib 2016-03-11 08:17:15 +00:00
base.py Remove remaining usage of cinder v1 API call from Tempest 2017-03-28 10:00:52 +00:00
test_extensions.py Use sequence directly instead of using len() 2017-04-17 15:03:04 +09:00
test_live_block_migration_negative.py Use tempest.lib data_utils - compute 2017-03-10 10:30:30 -08:00
test_networks.py Switch to decorators.idempotent_id on compute.* 2017-01-27 17:35:38 -08:00
test_quotas.py Add new detail kwarg to show_quota_set to QuotasClient. 2017-03-13 11:43:44 -04:00
test_tenant_networks.py Switch to decorators.idempotent_id on compute.* 2017-01-27 17:35:38 -08:00
test_versions.py Add smoke tag to compute version tests 2017-03-02 16:56:24 -08:00