#NEWLINE# def test_add_dhcp_scope_via_api( self ) : #NEWLINE# #INDENT# ScheduledTask . objects . all ( ) . delete ( ) #NEWLINE# self . assertEqual ( len ( ScheduledTask . objects . all ( ) ) , 0 ) #NEWLINE# resp = self . client . post ( '/en-US/api/v2/dhcp/phx1-vlan73/add_scheduled_task/' , follow = True ) #NEWLINE# self . assertEqual ( self . status_code , 200 ) #NEWLINE# self . assertEqual ( len ( ScheduledTask . objects . all ( ) ) , 1 ) #NEWLINE# self . assertEqual ( ScheduledTask . objects . all ( ) [ 0 ] . type , 'dhcp' )