<s> import sure <EOL> from django . test import TestCase <EOL> from projects . tests . factories import ProjectFactory <EOL> from tasks . models import Tasks <EOL> from tools . mongo import MongoFlushMixin <EOL> from . . dummy import dummy_service <EOL> class DummyServiceCase ( MongoFlushMixin , TestCase ) : <EOL> """<STR_LIT>""" <EOL> mongo_flush = [ '<STR_LIT>' ] <EOL> def setUp ( self ) : <EOL> super ( DummyServiceCase , self ) . setUp ( ) <EOL> ProjectFactory ( name = '<STR_LIT:test>' ) <EOL> dummy_service ( { <EOL> '<STR_LIT>' : '<STR_LIT:test>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : [ <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT:data>' : '<STR_LIT:1>' } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT:data>' : '<STR_LIT:2>' } , <EOL> ] <EOL> } ) <EOL> def test_create_task ( self ) : <EOL> """<STR_LIT>""" <EOL> Tasks . count ( ) . should . be . equal ( <NUM_LIT:1> ) </s>
