from django.test import TestCase

from ..models import User

class UserTest(TestCase):
    """ Test module for User Model """

    def setUp(self):
        User.objects.create(firstName="John", lastName="Doe", email="johndoe@email.com", password="secret")
        User.objects.create(firstName="Jane", lastName="Doe", email="janedoe@email.com", password="secret")

    def test_user_full_name(self):
        john = User.objects.get(email="johndoe@email.com")
        jane = User.objects.get(email="janedoe@email.com")
        self.assertEqual(john.get_full_name(), "John Doe")
        self.assertEqual(jane.get_full_name(), "Jane Doe")

    def test_user_short_name(self):
        john = User.objects.get(email="johndoe@email.com")
        jane = User.objects.get(email="janedoe@email.com")
        self.assertEqual(john.get_short_name(), "John")
        self.assertEqual(jane.get_short_name(), "Jane")


db214348b761d5561971774ff8db7ced437c3e36
<mask token>


class UserTest(TestCase):
    <mask token>

    def setUp(self):
        User.objects.create(firstName='John', lastName='Doe', email=
            'johndoe@email.com', password='secret')
        User.objects.create(firstName='Jane', lastName='Doe', email=
            'janedoe@email.com', password='secret')
    <mask token>

    def test_user_short_name(self):
        john = User.objects.get(email='johndoe@email.com')
        jane = User.objects.get(email='janedoe@email.com')
        self.assertEqual(john.get_short_name(), 'John')
        self.assertEqual(jane.get_short_name(), 'Jane')

<mask token>


class UserTest(TestCase):
    <mask token>

    def setUp(self):
        User.objects.create(firstName='John', lastName='Doe', email=
            'johndoe@email.com', password='secret')
        User.objects.create(firstName='Jane', lastName='Doe', email=
            'janedoe@email.com', password='secret')

    def test_user_full_name(self):
        john = User.objects.get(email='johndoe@email.com')
        jane = User.objects.get(email='janedoe@email.com')
        self.assertEqual(john.get_full_name(), 'John Doe')
        self.assertEqual(jane.get_full_name(), 'Jane Doe')

    def test_user_short_name(self):
        john = User.objects.get(email='johndoe@email.com')
        jane = User.objects.get(email='janedoe@email.com')
        self.assertEqual(john.get_short_name(), 'John')
        self.assertEqual(jane.get_short_name(), 'Jane')

<mask token>


class UserTest(TestCase):
    """ Test module for User Model """

    def setUp(self):
        User.objects.create(firstName='John', lastName='Doe', email=
            'johndoe@email.com', password='secret')
        User.objects.create(firstName='Jane', lastName='Doe', email=
            'janedoe@email.com', password='secret')

    def test_user_full_name(self):
        john = User.objects.get(email='johndoe@email.com')
        jane = User.objects.get(email='janedoe@email.com')
        self.assertEqual(john.get_full_name(), 'John Doe')
        self.assertEqual(jane.get_full_name(), 'Jane Doe')

    def test_user_short_name(self):
        john = User.objects.get(email='johndoe@email.com')
        jane = User.objects.get(email='janedoe@email.com')
        self.assertEqual(john.get_short_name(), 'John')
        self.assertEqual(jane.get_short_name(), 'Jane')

from django.test import TestCase
from ..models import User


class UserTest(TestCase):
    """ Test module for User Model """

    def setUp(self):
        User.objects.create(firstName='John', lastName='Doe', email=
            'johndoe@email.com', password='secret')
        User.objects.create(firstName='Jane', lastName='Doe', email=
            'janedoe@email.com', password='secret')

    def test_user_full_name(self):
        john = User.objects.get(email='johndoe@email.com')
        jane = User.objects.get(email='janedoe@email.com')
        self.assertEqual(john.get_full_name(), 'John Doe')
        self.assertEqual(jane.get_full_name(), 'Jane Doe')

    def test_user_short_name(self):
        john = User.objects.get(email='johndoe@email.com')
        jane = User.objects.get(email='janedoe@email.com')
        self.assertEqual(john.get_short_name(), 'John')
        self.assertEqual(jane.get_short_name(), 'Jane')

from django.test import TestCase

from ..models import User

class UserTest(TestCase):
    """ Test module for User Model """

    def setUp(self):
        User.objects.create(firstName="John", lastName="Doe", email="johndoe@email.com", password="secret")
        User.objects.create(firstName="Jane", lastName="Doe", email="janedoe@email.com", password="secret")

    def test_user_full_name(self):
        john = User.objects.get(email="johndoe@email.com")
        jane = User.objects.get(email="janedoe@email.com")
        self.assertEqual(john.get_full_name(), "John Doe")
        self.assertEqual(jane.get_full_name(), "Jane Doe")

    def test_user_short_name(self):
        john = User.objects.get(email="johndoe@email.com")
        jane = User.objects.get(email="janedoe@email.com")
        self.assertEqual(john.get_short_name(), "John")
        self.assertEqual(jane.get_short_name(), "Jane")

