<commit_before>from test_utils import TestCase
from django.test import Client
from test_utils import RequestFactory
from test_utils import setup_test_environment
from django.core.urlresolvers import reverse
import os
from mozpackager.MozPackager import MozPackage
import models
import json

setup_test_environment()


post_data = {
        'input_type': 'rpm',
        'arch_type': 'x86_64',
        'package_version': '1.0',
        'application_group': 'Applications/Internet',
        'install_package_name': 'dummy_package_name',
        'upload_package': 'dummy upload package text',
        'output_type': 'rpm',
        'rhel_version': '6',
        }

class TestBuildFromBuildSource(TestCase):
    def setUp(self):
        pass

    def tearDown(self):
        pass

    def testURIExists(self):<commit_msg>Refactored and cleaned up tests<commit_after>from test_utils import TestCase
from django.test import Client
from test_utils import RequestFactory
from test_utils import setup_test_environment
from django.core.urlresolvers import reverse
import os
from mozpackager.MozPackager import MozPackage
import models
import json

setup_test_environment()


post_data = {
        'input_type': 'rpm',
        'arch_type': 'x86_64',
        'package_version': '1.0',
        'application_group': 'Applications/Internet',
        'install_package_name': 'dummy_package_name',
        'upload_package': 'dummy upload package text',
        'output_type': 'rpm',
        'rhel_version': '6',
        }

class TestBuildSourceBuildFile(TestCase):
    def setUp(self):
        pass

    def tearDown(self):
        pass

class TestBuildFromBuildSource(TestCase):
    def setUp(self):
        pass

    def tearDown(self):
        pass

    def testURIExists(self):
{'fraction_non_alphanumeric': 0.08915388983532084, 'fraction_numerical': 0.007950028392958546, 'mean_word_length': 3.5295629820051415, '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': '2735947', 'n_tokens_mistral': 525, 'n_tokens_neox': 505, 'n_words': 133}