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

def test_chemcalc_ajax_sucess(self):

    data = {'formula': 'H'}
    response = self.the_input.handle_ajax('preview_chemcalc', data)
    self.assertIn('preview', response)
    self.assertNotEqual(response['preview'], '')
    self.assertEqual(response['error'], '')
