ccdb-api/ccdb/users/tests/test_models.py
Matthew Dillon 7ba937ef66 INITIAL
2016-01-19 15:10:09 -07:00

18 lines
442 B
Python

from test_plus.test import TestCase
class TestUser(TestCase):
def setUp(self):
self.user = self.make_user()
def test__str__(self):
self.assertEqual(
self.user.__str__(),
"testuser" # This is the default username for self.make_user()
)
def test_get_absolute_url(self):
self.assertEqual(
self.user.get_absolute_url(),
'/users/testuser/'
)