<commit_before>from django.test import TestCase

# Create your tests here.
<commit_msg>create test for Bucketlist model<commit_after>from django.test import TestCase
from django.contrib.auth.models import User
from bucketlist.models import Bucketlist


# Create your tests here.
class BucketlistTestCase(TestCase):
    def setUp(self):
        self.user = User.objects.create_user(
                    username='jake',
                    email='<EMAIL>',
                    password='<PASSWORD>')
        Bucketlist.objects.create(name='checkpoint 1', created_by=self.user)

    def test_bucketlist_created_properly(self):
        '''Check bucketlist is created properly'''
        mylist = Bucketlist.object.get(name='checkpoint 1')
        self.assertIsNotNone(mylist)
        self.assertEqual(mylist.date_created, mylist.date_modified)
        self.assertIsNotNone(mylist.items)
        self.assertEqual(mylist.created_by, self.user)

{'fraction_non_alphanumeric': 0.09478168264110756, 'fraction_numerical': 0.002129925452609159, 'mean_word_length': 3.234234234234234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5379321', 'n_tokens_mistral': 270, 'n_tokens_neox': 266, 'n_words': 56}