# Path: nosedjangotests/polls/models.py
# class Choice(models.Model):
#     content_type = models.ForeignKey('contenttypes.ContentType')
#     object_id = models.PositiveIntegerField()
#     poll = GenericForeignKey('content_type', 'object_id')
# 
#     choice = models.CharField(max_length=200)
#     votes = models.IntegerField(default=0)
# 
#     @atomic
#     def reset(self):
#         self.votes = 0
#         self.save()
# 
# class Poll(models.Model):
#     question = models.CharField(max_length=200)
#     pub_date = models.DateTimeField('date published')
# 
#     @atomic
#     def reset(self):
#         self.question = ""
#         self.save()


from contextlib import contextmanager
from datetime import datetime
    from django.db.transaction import atomic
    from django.db.transaction import commit_on_success as atomic
from django.db import transaction
from django.db.transaction import TransactionManagementError
from django.test import TestCase
from nose.plugins.skip import SkipTest
from nosedjangotests.polls.models import Choice, Poll
import django

try:
except ImportError:




def _test_using_content_types(self):

# Path: nosedjangotests/polls/models.py
# class Choice(models.Model):
#     content_type = models.ForeignKey('contenttypes.ContentType')
#     object_id = models.PositiveIntegerField()
#     poll = GenericForeignKey('content_type', 'object_id')
# 
#     choice = models.CharField(max_length=200)
#     votes = models.IntegerField(default=0)
# 
#     @atomic
#     def reset(self):
#         self.votes = 0
#         self.save()
# 
# class Poll(models.Model):
#     question = models.CharField(max_length=200)
#     pub_date = models.DateTimeField('date published')
# 
#     @atomic
#     def reset(self):
#         self.question = ""
#         self.save()


# Path: nosedjangotests/polls/tests/test0.py
from contextlib import contextmanager
from datetime import datetime
    from django.db.transaction import atomic
    from django.db.transaction import commit_on_success as atomic
from django.db import transaction
from django.db.transaction import TransactionManagementError
from django.test import TestCase
from nose.plugins.skip import SkipTest
from nosedjangotests.polls.models import Choice, Poll
import django


try:
except ImportError:




def _test_using_content_types(self):

    self.assertEqual(Choice.objects.all().count(), 1)