title: How to test django's front-end javascripts
body: <p>I'm trying to test my <em>django</em> powered website's <em>backbone.js</em> front-end.</p>
  
  <p>I found out that <em>karma.js</em> and <em>jasmine</em> are for those frontend testing, but it seems like they are just for <strong>"front-end"</strong>, which means they cannot test interactions between front-end <em>backbone</em> models and my <em>django</em> REST API server.</p>
  
  <p>What I'm looking for is an testing framework that can test front-end javascripts in a BDD style (<strong>including interactions between front-end and back-end</strong>).</p>
  
  <p>I know that there are a few tools for testing DOM, such as <em>selenium</em> or <em>lettuce</em>, etc. But what I want is to test my front-end <strong>"javascript"</strong>, not DOM, and that's why I tried out <strong>karma.js</strong> and <strong>jasmine</strong> at first.</p>
  
  <p>Is there any testing framework that can test front-end with back-end network interactions? Or is there any way to tweak <strong>karma.js</strong> to work together nicely with django's development server?</p>