'Verify that using the correct dispatch and valid data produces a valid response'

def test_formcalc_ajax_sucess(self):

    data = {'formula': 'x^2+1/2', 'request_start': 0}
    response = self.the_input.handle_ajax('preview_formcalc', data)
    self.assertIn('preview', response)
    self.assertNotEqual(response['preview'], '')
    self.assertEqual(response['error'], '')
    self.assertEqual(response['request_start'], data['request_start'])
