# 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()


from django.test.testcases import TestCase
from nosedjangotests.polls.models import Choice



class AAAFixtureTestCase(TestCase):
    fixtures = [
        'choices',
    ]

    def test_to_load_fixtures(self):
        self.assertEqual(Choice.objects.count(), 1)


class BBBNoFixturesFollowingWithFixturesTestCase(TestCase):
    def test_no_data_left_over_from_previous_fixture(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()


# Path: nosedjangotests/polls/tests/test_fixture_bleedthrough.py
from django.test.testcases import TestCase
from nosedjangotests.polls.models import Choice




class AAAFixtureTestCase(TestCase):
    fixtures = [
        'choices',
    ]

    def test_to_load_fixtures(self):
        self.assertEqual(Choice.objects.count(), 1)


class BBBNoFixturesFollowingWithFixturesTestCase(TestCase):
    def test_no_data_left_over_from_previous_fixture(self):

        self.assertEqual(Choice.objects.count(), 0)