# Path: whatistheplan/models/userprofile.py
# class UserProfile(models.Model):
#     """
#     user -> (Django built-in User class)
#     name -> Eugene M'TnDew
#     steamid -> dyladan
#     """
#     user = models.OneToOneField(User, primary_key=True)
#     name = models.CharField(max_length=256, unique=False)
#     steamid = models.CharField(max_length=256)
#     irc = models.CharField(max_length=256, unique=False)
#     mac_address = models.CharField(max_length=256, unique=False)


from django.test import Client, TestCase
from whatistheplan.models import UserProfile
from django.contrib.auth.models import User

class UserProfileTest(TestCase):
    def setUp(self):
        self.u1 = User.objects.create_user('username', 'email@email.com', 'password')
        self.u2 = User.objects.create_user('dickweed', 'email2@email.com', 'password')

# Path: whatistheplan/models/userprofile.py
# class UserProfile(models.Model):
#     """
#     user -> (Django built-in User class)
#     name -> Eugene M'TnDew
#     steamid -> dyladan
#     """
#     user = models.OneToOneField(User, primary_key=True)
#     name = models.CharField(max_length=256, unique=False)
#     steamid = models.CharField(max_length=256)
#     irc = models.CharField(max_length=256, unique=False)
#     mac_address = models.CharField(max_length=256, unique=False)


# Path: tests/test_userprofile.py
from django.test import Client, TestCase
from whatistheplan.models import UserProfile
from django.contrib.auth.models import User


class UserProfileTest(TestCase):
    def setUp(self):
        self.u1 = User.objects.create_user('username', 'email@email.com', 'password')
        self.u2 = User.objects.create_user('dickweed', 'email2@email.com', 'password')

        self.up1 = UserProfile.objects.create(user=self.u1, name="Lil Jon")