Skip to content

Commit

Permalink
add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexaorrico committed Oct 4, 2017
1 parent 0b4b704 commit cb7d5ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_models/test_amenity.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def test_amenity_func_docstrings(self):
class TestAmenity(unittest.TestCase):
"""Test the Amenity class"""
def test_is_subclass(self):
"""Test that Amenity is a subclass of BaseModel"""
amenity = Amenity()
self.assertIsInstance(amenity, BaseModel)
self.assertTrue(hasattr(amenity, "id"))
Expand Down
5 changes: 5 additions & 0 deletions tests/test_models/test_base_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/python3
"""
Contains class TestBaseModelDocs and class TestBaseModel
"""


from datetime import datetime
import inspect
from models import base_model
Expand Down

0 comments on commit cb7d5ee

Please sign in to comment.