<s> import sure <EOL> from django . test import TestCase <EOL> from tasks . const import STATUS_SUCCESS , STATUS_FAILED <EOL> from . . testem import testem_violation <EOL> from . base import get_content <EOL> class TestemViolationCase ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_success ( self ) : <EOL> """<STR_LIT>""" <EOL> data = { <EOL> '<STR_LIT>' : get_content ( '<STR_LIT>' ) , <EOL> } <EOL> result = testem_violation ( data ) <EOL> result [ '<STR_LIT:status>' ] . should . be . equal ( STATUS_SUCCESS ) <EOL> result [ '<STR_LIT>' ] [ '<STR_LIT>' ] . should . be . equal ( <NUM_LIT> ) <EOL> result [ '<STR_LIT>' ] [ '<STR_LIT>' ] . should . be . equal ( <NUM_LIT> ) <EOL> result [ '<STR_LIT>' ] [ '<STR_LIT>' ] . should . be . equal ( <NUM_LIT:0> ) <EOL> result [ '<STR_LIT>' ] . should . be . equal ( <NUM_LIT:100> ) <EOL> def test_fail ( self ) : <EOL> data = { <EOL> '<STR_LIT>' : get_content ( '<STR_LIT>' ) , <EOL> } <EOL> result = testem_violation ( data ) <EOL> result [ '<STR_LIT:status>' ] . should . be . equal ( STATUS_FAILED ) <EOL> result [ '<STR_LIT>' ] [ '<STR_LIT>' ] . should . be . equal ( <NUM_LIT> ) <EOL> result [ '<STR_LIT>' ] [ '<STR_LIT>' ] . should . be . equal ( <NUM_LIT> ) <EOL> result [ '<STR_LIT>' ] [ '<STR_LIT>' ] . should . be . equal ( <NUM_LIT:1> ) <EOL> result [ '<STR_LIT>' ] . should . be . equal ( <NUM_LIT> ) </s>
