<commit_before>import unittest
from models import *
from app import *
from helpers import *

class TestModel(unittest.TestCase):

    def setUp(self):
        self.test_meter = ParkingMeter(location=ndb.GeoPt(float(41.8500), float(87.6500)),
                                         time_limit=60,
                                         time_per_quarter=15,
                                         enforcement_start=8,
                                         enforcement_end=6,
                                         congestion=1)
    def test_get(self):
        lat = self.test_meter._get_latitude()
        lon = self.test_meter._get_longitude()
        self.assertEqual(41.8500, lat)
        self.assertEqual(87.6500,lat)
                
class TestApp(unittest.TestCase):
    
    def setUp(self):
        
class TestHelpers(unittest.TestCase):

    def setUp(self):
<commit_msg>python server tests<commit_after>import unittest
from models import *
from app import *
from helpers import *
from google.appengine.api import memcache
from google.appengine.ext import ndb
from google.appengine.ext import testbed

class TestApp(unittest.TestCase):
    
    def setUp(self):
        self.testbed = testbed.Testbed()
        self.testbed.activate()
        self.testbed.init_datastore_v3_stub()
        self.testbed.init_memcache_stub()

    def tearDown(self):
        self.testbed.deactivate()
                
    def test_get(self):
        test_meter = ParkingMeter(location=ndb.GeoPt(float(41.8500), float(87.6500)),
                                         time_limit=60,
                                         time_per_quarter=15,
                                         enforcement_start=8,
                                         enforcement_end=6,
                                         congestion=1)
        test_meter.update_location()
        meter_key = str(test_meter.put())

        returned_meter = ParkingMeter.get(meter_key)
        
        lat = test_meter._get_latitude()
        lon = test_meter._get_longitude()
        self.assertEqual(41.8500, lat)
        self.assertEqual(87.6500,lat)


        
if __name__ == '__main__':
    unittest.main()

{'fraction_non_alphanumeric': 0.0843263061411549, 'fraction_numerical': 0.028872593950504125, 'mean_word_length': 1.6301204819277109, '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': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '430659', 'n_tokens_mistral': 627, 'n_tokens_neox': 580, 'n_words': 103}