diff --git a/exercises/python/cards/encapsulation.py b/exercises/python/cards/cards.py similarity index 89% rename from exercises/python/cards/encapsulation.py rename to exercises/python/cards/cards.py index c6a9ee8..b67d441 100644 --- a/exercises/python/cards/encapsulation.py +++ b/exercises/python/cards/cards.py @@ -1,10 +1,10 @@ -class Encapsulation: +class Cards: def __init__(self): pass def runner(self): - encapsulation = Encapsulation() - deck_in_order = encapsulation.get_cards() + cards = Cards() + deck_in_order = cards.get_cards() for card in deck_in_order: print(card) @@ -46,5 +46,5 @@ def get_cards(self): return result -encapsulation = Encapsulation() -encapsulation.runner() +cards = Cards() +cards.runner() diff --git a/exercises/python/cards/test_encapsulation.py b/exercises/python/cards/test_encapsulation.py index b69c44a..6aa45d5 100644 --- a/exercises/python/cards/test_encapsulation.py +++ b/exercises/python/cards/test_encapsulation.py @@ -1,12 +1,12 @@ import unittest -from encapsulation import Encapsulation +from cards import Cards -class EncapsulationTest(unittest.TestCase): +class CardsTest(unittest.TestCase): def test_get_deck_in_order_return_52_cards_correctly_formatted(self): - encapsulation = Encapsulation() - self.assertEqual(encapsulation.get_cards(), [ + cards = Cards() + self.assertEqual(cards.get_cards(), [ "ace of clubs", "2 of clubs", "3 of clubs",