def METHOD_NAME(nessus):
    test_file = BytesIO(b'something to see here')
    responses.add(responses.POST,
                  'https://localhost:8834/scans/1/export',
                  match=[
                      matchers.json_params_matcher({
                          'format': 'nessus'
                      })
                  ],
                  json={'token': 'abcdef'}
                  )
    responses.add(responses.GET,
                  'https://localhost:8834/tokens/abcdef/status',
                  json={'status': 'ready'}
                  )
    responses.add(responses.GET,
                  'https://localhost:8834/tokens/abcdef/download',
                  body=test_file.read()
                  )
    test_file.seek(0)
    assert nessus.scans.export_scan(1).read() == test_file.read()