<s> import datetime <EOL> from django . test import TestCase <EOL> from . . models import Minutes <EOL> class MinutesModelTests ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . m1 = Minutes . objects . create ( <EOL> date = datetime . date ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> ) , <EOL> content = '<STR_LIT>' , <EOL> is_published = True <EOL> ) <EOL> self . m2 = Minutes . objects . create ( <EOL> date = datetime . date ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> ) , <EOL> content = '<STR_LIT>' , <EOL> is_published = False <EOL> ) <EOL> def test_draft ( self ) : <EOL> self . assertQuerysetEqual ( <EOL> Minutes . objects . draft ( ) , <EOL> [ '<STR_LIT>' ] <EOL> ) <EOL> def test_published ( self ) : <EOL> self . assertQuerysetEqual ( <EOL> Minutes . objects . published ( ) , <EOL> [ '<STR_LIT>' ] <EOL> ) <EOL> def test_date_methods ( self ) : <EOL> self . assertEqual ( self . m1 . get_date_year ( ) , '<STR_LIT>' ) <EOL> self . assertEqual ( self . m1 . get_date_month ( ) , '<STR_LIT>' ) <EOL> self . assertEqual ( self . m1 . get_date_day ( ) , '<STR_LIT>' ) </s>
