Skip to content

Commit 7cae91d

Browse files
committed
flake8 changes
1 parent 522939c commit 7cae91d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

SoftLayer/tests/managers/billing_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:license: MIT, see LICENSE for more details.
66
"""
77
import datetime
8+
89
import SoftLayer
910
from SoftLayer import testing
1011

@@ -31,11 +32,11 @@ def test_billing_summary(self):
3132

3233
def test_billing_summary_with_date(self):
3334
results = self.billing.list_resources(from_date='2014-02-06')
34-
test_date = datetime.date(2014, 2, 6)
3535
now = datetime.date.today()
3636
now_delta = now - datetime.date(2014, 2, 6)
3737
for result in results:
3838
create_date = result['createDate']
39-
row_date = datetime.datetime.strptime(create_date[0:10], '%Y-%m-%d')
39+
strp_date = create_date[0:10]
40+
row_date = datetime.datetime.strptime(strp_date, '%Y-%m-%d')
4041
row_delta = now - row_date.date()
4142
self.assertTrue(now_delta >= row_delta)

0 commit comments

Comments
 (0)