Skip to content

Commit 4e4b505

Browse files
authored
Merge pull request faif#181 from 0--key/pep8
PEP8
2 parents 6c65c86 + 6382b76 commit 4e4b505

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

structural/proxy.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
3+
from __future__ import print_function
44
import time
55

66

@@ -29,7 +29,8 @@ class NoTalkProxy(Proxy):
2929
def talk(self):
3030
print("Proxy checking for Sales Manager availability")
3131
time.sleep(0.1)
32-
print("This Sales Manager will not talk to you whether he/she is busy or not")
32+
print("This Sales Manager will not talk to you",
33+
"whether he/she is busy or not")
3334

3435

3536
if __name__ == '__main__':

tests/test_flyweight.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,18 @@ def test_instances_shall_reference_same_object(self):
1212
self.assertEqual(c1, c2)
1313
self.assertEqual(id(c1), id(c2))
1414

15-
def test_instances_with_different_suit_shall_reference_different_objects(self):
15+
def test_instances_with_different_suit(self):
16+
"""
17+
shall reference different objects
18+
"""
1619
c1 = Card('9', 'a')
1720
c2 = Card('9', 'b')
1821
self.assertNotEqual(id(c1), id(c2))
1922

20-
def test_instances_with_different_values_shall_reference_different_objects(self):
23+
def test_instances_with_different_values(self):
24+
"""
25+
shall reference different objects
26+
"""
2127
c1 = Card('9', 'h')
2228
c2 = Card('A', 'h')
2329
self.assertNotEqual(id(c1), id(c2))

0 commit comments

Comments
 (0)