#NEWLINE# def test_create_follower( entity , follower_mocks ) : #NEWLINE# #INDENT# 'Test that you can start following an entity.' #NEWLINE# response = POST ( 'followers.followers' , { #NEWLINE# #INDENT# 'entity' : follower_mocks [ 'identity' ] , #NEWLINE# 'licences' : [ ] , #NEWLINE# 'types' : 'all' , #NEWLINE# 'notification_path' : 'notification' , #NEWLINE# #UNINDENT# } ) #NEWLINE# Follower . objects . get ( id = response . json ( ) [ 'id' ] ) #NEWLINE# assert requests . get . was_called ( follower_mocks [ 'notification_path' ] )