<s> from django . test import TestCase <EOL> try : <EOL> import simplejson as json <EOL> except ImportError : <EOL> import json <EOL> from chronam . core import models as m <EOL> class JsonTests ( TestCase ) : <EOL> fixtures = [ '<STR_LIT>' ] <EOL> def test_speedups ( self ) : <EOL> self . assertTrue ( json . _speedups ) <EOL> def test_batch ( self ) : <EOL> b = m . Batch . objects . get ( name = '<STR_LIT>' ) <EOL> j = b . json ( ) <EOL> x = json . loads ( j ) <EOL> self . assertEqual ( x [ '<STR_LIT:name>' ] , '<STR_LIT>' ) </s>
