<s> from decimal import * <EOL> from django . test import TestCase <EOL> from django . conf import settings <EOL> from django import template <EOL> from currencies . models import Currency <EOL> class TemplateTagTest ( TestCase ) : <EOL> fixtures = [ '<STR_LIT>' ] <EOL> use_transaction = False <EOL> def setUp ( self ) : <EOL> self . template = '<STR_LIT>' <EOL> def test_currency_filter ( self ) : <EOL> t = template . Template ( self . template + <EOL> '<STR_LIT>' <EOL> ) <EOL> c = template . Context ( ) <EOL> s = t . render ( c ) <EOL> self . assertEqual ( s , u'<STR_LIT>' ) <EOL> def test_change_currency_tag_success ( self ) : <EOL> t = template . Template ( self . template + <EOL> '<STR_LIT>' <EOL> ) <EOL> c = template . Context ( ) <EOL> s = t . render ( c ) <EOL> self . assertEqual ( s , u'<STR_LIT>' ) <EOL> def test_change_currency_tag_fail ( self ) : <EOL> t = template . Template ( self . template + <EOL> '<STR_LIT>' <EOL> ) <EOL> c = template . Context ( ) <EOL> s = t . render ( c ) <EOL> self . assertEqual ( s , u'<STR_LIT>' ) </s>
