-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from green-code-initiative/ISSUE_123_ecocode
[ISSUE 123] complete real tests for EC7 rule
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from datetime import date | ||
|
||
class Client(): | ||
|
||
def __init__(self, age, weight): | ||
self.age = age | ||
self.weight = weight | ||
|
||
def get_age_in_five_years(self): | ||
a = Client() | ||
return a.age | ||
|
||
def is_major(self): | ||
return self.age >= 18 | ||
|
||
client = Client(25) | ||
client.age | ||
client.age = 25 | ||
client.weight | ||
client.weight(5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters