#NEWLINE# @ pytest . mark . django_db #NEWLINE# def test_fetch_warning( ) : #NEWLINE# #INDENT# user = User . objects . create_user ( 'a' , 'vagrant@test.rcos.rpi.edu' , 'bob' ) #NEWLINE# user . first_name = 'testf' #NEWLINE# user . last_name = 'testf' #NEWLINE# user . save ( ) #NEWLINE# email = EmailAddress ( address = 'vagrant@test.rcos.rpi.edu' , user = user ) #NEWLINE# email . save ( ) #NEWLINE# ease_blog = Blog ( from_feed = False ) #NEWLINE# ease_blog . save ( ) #NEWLINE# ease_repo = Repository ( web_url = 'http://git.gnome.org/browse/ease' , clone_url = 'git://git.gnome.org/ease' , from_feed = False ) #NEWLINE# ease_repo . save ( ) #NEWLINE# ease = Project ( title = 'Ease' , description = 'A presentation application for the Gnome Desktop.' , website = 'http://www.ease-project.org' , wiki = 'http://live.gnome.org/Ease' , blog_id = ease_blog . id , repository_id = ease_blog . id ) #NEWLINE# ease . save ( ) #NEWLINE# ease . authors . add ( user ) #NEWLINE# ease . save ( ) #NEWLINE# ease . do_warnings ( ) #NEWLINE# assert ( ease . blog_warn_level > 0 ) #NEWLINE# assert ( ease . repo_warn_level > 0 )