<s> from changes . models import BuildSeen <EOL> from changes . testutils import APITestCase <EOL> class BuildMarkSeenTest ( APITestCase ) : <EOL> def test_simple ( self ) : <EOL> project = self . create_project ( ) <EOL> build = self . create_build ( project = project ) <EOL> self . login_default ( ) <EOL> path = '<STR_LIT>' . format ( build . id . hex ) <EOL> resp = self . client . post ( path ) <EOL> assert resp . status_code == <NUM_LIT:200> <EOL> buildseen = BuildSeen . query . filter ( <EOL> BuildSeen . user_id == self . default_user . id , <EOL> BuildSeen . build_id == build . id , <EOL> ) . first ( ) <EOL> assert buildseen </s>
