# Path: kullanici/models.py
# class IsVeren(models.Model):
#     kullanici = models.OneToOneField(User,related_name="is_veren")
#     cinsiyetSecenekleri = (
#         ('E', 'Erkek'),
#         ('K', 'Kadın'),
#     )
#     cinsiyet = models.CharField(max_length=1, choices=cinsiyetSecenekleri,blank=True, null=True)
#     dogumGunu = models.DateField(blank=True, null=True,default=datetime.date.today)
#     telefon = models.CharField(max_length=12,blank=True, null=True)
#     fotograf = models.ImageField(blank=True, null=True,upload_to="users")
#     
#     def __str__(self):
#         return self.kullanici.username
#     
#     def getIsveren(kullaniciID):
#         return IsVeren.objects.get(pk=kullaniciID)
# 
#     class Meta:
#         verbose_name ="İş Veren Profili"
#         verbose_name_plural="İş Veren Profilleri"


from django.test import TestCase
from .models import IsVeren
from django.contrib.auth.models import User 

class IsVerenTestCase(TestCase):
    def setUp(self):
        user = User.objects.create(username="ufukdogan")

# Path: kullanici/models.py
# class IsVeren(models.Model):
#     kullanici = models.OneToOneField(User,related_name="is_veren")
#     cinsiyetSecenekleri = (
#         ('E', 'Erkek'),
#         ('K', 'Kadın'),
#     )
#     cinsiyet = models.CharField(max_length=1, choices=cinsiyetSecenekleri,blank=True, null=True)
#     dogumGunu = models.DateField(blank=True, null=True,default=datetime.date.today)
#     telefon = models.CharField(max_length=12,blank=True, null=True)
#     fotograf = models.ImageField(blank=True, null=True,upload_to="users")
#     
#     def __str__(self):
#         return self.kullanici.username
#     
#     def getIsveren(kullaniciID):
#         return IsVeren.objects.get(pk=kullaniciID)
# 
#     class Meta:
#         verbose_name ="İş Veren Profili"
#         verbose_name_plural="İş Veren Profilleri"


# Path: kullanici/tests.py
from django.test import TestCase
from .models import IsVeren
from django.contrib.auth.models import User 


class IsVerenTestCase(TestCase):
    def setUp(self):
        user = User.objects.create(username="ufukdogan")

        IsVeren.objects.create(kullanici=user,cinsiyet='E',dogumGunu="1992-09-24",telefon="456456")