# 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: whatistheplan/models/game.py
# class Game(models.Model):
#     """
#     game_name -> Counter Strike Source
#     """
#     # game_name = models.CharField(max_length=256)
#     # game_time = models.CharField(max_length=256)
#     # game_room = models.CharField(max_length=256)
#     # game_1st_prize = models.Charfield(max_length=256)
#     # game_2nd_prize = models.Charfield(max_length=256)
#     # game_3rd_prize = models.Charfield(max_length=256)
#     # game_details = models.Charfield(max_length=1024)
#     # 
#     # game_image = models.ImageField()
# 
# Path: whatistheplan/models/team.py
# class Team(models.Model):
#     """
#     team_name -> The Crows
#     game -> (instance of Game class)
#     """
#     team_name = models.CharField(max_length=256)
#     game = models.ForeignKey('Game')
#     userprofiles = models.ManyToManyField('UserProfile')


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

class TeamTest(TestCase):
    def setUp(self):
        self.g1 = Game.objects.create(game_name='Counter Strike Source')
        self.g1.save()

        self.u1 = User.objects.create_user('username', 'email@email.com', 'password')
        self.u2 = User.objects.create_user('dickweed', 'email2@email.com', 'password')
        self.u1.save()
        self.u2.save()


# 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: whatistheplan/models/game.py
# class Game(models.Model):
#     """
#     game_name -> Counter Strike Source
#     """
#     # game_name = models.CharField(max_length=256)
#     # game_time = models.CharField(max_length=256)
#     # game_room = models.CharField(max_length=256)
#     # game_1st_prize = models.Charfield(max_length=256)
#     # game_2nd_prize = models.Charfield(max_length=256)
#     # game_3rd_prize = models.Charfield(max_length=256)
#     # game_details = models.Charfield(max_length=1024)
#     # 
#     # game_image = models.ImageField()
# 
# Path: whatistheplan/models/team.py
# class Team(models.Model):
#     """
#     team_name -> The Crows
#     game -> (instance of Game class)
#     """
#     team_name = models.CharField(max_length=256)
#     game = models.ForeignKey('Game')
#     userprofiles = models.ManyToManyField('UserProfile')


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


class TeamTest(TestCase):
    def setUp(self):
        self.g1 = Game.objects.create(game_name='Counter Strike Source')
        self.g1.save()

        self.u1 = User.objects.create_user('username', 'email@email.com', 'password')
        self.u2 = User.objects.create_user('dickweed', 'email2@email.com', 'password')
        self.u1.save()
        self.u2.save()


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