Created
August 10, 2018 00:54
-
-
Save moacirmoda/d260850e28a65ff570c30bc5e5bd8aeb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from django.test import TestCase | |
from myapp.models import Person | |
class PersonTestCase(TestCase): | |
def test_should_return_attributes(self): | |
self.assertTrue(hasattr(Person, 'first_name')) | |
self.assertTrue(hasattr(Person, 'last_name')) | |
self.assertTrue(hasattr(Person, 'age')) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment