<reponame>cabalamat/markwiki<filename>markwiki/tests/test_user.py
# Copyright (c) 2016, <NAME>
'''Tests for the User model.'''

import unittest

from markwiki.models.user import User


class TestUser(unittest.TestCase):

    def setUp(self):
        self.user = User('mblayman', '<EMAIL>', 'password', '<PASSWORD>')

    def test_has_login_type(self):
        self.assertEqual('password', self.user.login_type)

    def test_has_name(self):
        self.assertEqual('mblayman', self.user.name)

    def test_has_email(self):
        self.assertEqual('<EMAIL>', self.user.email)

    def test_has_password_digest(self):
        self.assertEqual('digest', self.user.password_digest)
