'Wait until the scan is in Running state
:return: The HTTP response'

def wait_until_running(self):

    for _ in xrange(10):
        time.sleep(0.5)
        response = requests.get(('%s/scans/' % self.api_url), auth=self.api_auth, verify=False)
        self.assertEqual(response.status_code, 200, response.text)
        if (response.json()['items'][0]['status'] != 'Stopped'):
            return response
    raise RuntimeError('Timeout    waiting    for    scan    to    run')
