 
   test("addForm on added inner formset works", ->
     fixture = @fixtureDivWithNestedFormsets
-    formset = fixture.children('div')
-      .djangoFormset()
+    formset = fixture.children('div').djangoFormset()
     nestedFormset = null
 
     $(formset).on('formAdded', (event, form) ->

  )

  test("adds form at the end", ->
    formset = @fixtureSimpleList.children('li')
      .djangoFormset()
    equal(@fixtureSimpleList.children(":visible:last-child")
      .contents().first().text(),
      "awesome test markup",


  test("throws on missing TOTAL_FORMS", ->
    throws((->
      @fixtureNoTotalForms.children('li').djangoFormset()),
      /Management form field 'TOTAL_FORMS' not found for prefix no-total-forms/,
      "throws Error")
    return
