<commit_before>"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".

Replace this with more appropriate tests for your application.
"""

from django.test import TestCase


class SimpleTest(TestCase):
    def test_basic_addition(self):
        """
        Tests that 1 + 1 always equals 2.
        """
        self.assertEqual(1 + 1, 2)<commit_msg>version 0.2 20121017081214<commit_after>"""
unittest for Sku module 
"""

from django.utils import unittest
from models import Sku
from django.test import TestCase

class SkuTestCase(unittest.TestCase):
    def setUp(self):
        self.sku1 = Sku.objects.create( IntCode = "Codigo 1", MovUnit = '', Desc = "Descricao Codigo 1", ShortDesc = "Descricao Curta Codigo 1") 
    	self.sku1.LoadSampleData(10)

#
# Database Tests 
#

    def testDbSku(self):
        """
        Test sky object single creation 
        """
        self.assertEqual(self.sku1.IntCode, 'Codigo 1')

    def testDbLoadSku(self):
        """
        Test sky object single creation 
        """

    def testDbt3(self):
        """
        Test sky object single creation 
        """
#
# Web site tests
#
    def testWst3(self):
        """
        Test sky object single creation 
        """
{'fraction_non_alphanumeric': 0.10101801096319499, 'fraction_numerical': 0.025841816758026624, 'mean_word_length': 2.610169491525424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7598300', 'n_tokens_mistral': 412, 'n_tokens_neox': 375, 'n_words': 119}