<s> from pydotorg . tests . test_classes import TemplateTestCase <EOL> from . . models import Post <EOL> class CommunityManagersTest ( TemplateTestCase ) : <EOL> def test_post_manager ( self ) : <EOL> private_post = Post . objects . create ( <EOL> content = '<STR_LIT>' , <EOL> media_type = Post . MEDIA_TEXT , <EOL> status = Post . STATUS_PRIVATE <EOL> ) <EOL> public_post = Post . objects . create ( <EOL> content = '<STR_LIT>' , <EOL> media_type = Post . MEDIA_TEXT , <EOL> status = Post . STATUS_PUBLIC <EOL> ) <EOL> self . assertQuerysetEqual ( Post . objects . all ( ) , [ public_post , private_post ] , lambda x : x ) <EOL> self . assertQuerysetEqual ( Post . objects . public ( ) , [ public_post ] , lambda x : x ) <EOL> self . assertQuerysetEqual ( Post . objects . private ( ) , [ private_post ] , lambda x : x ) </s>
