'``write_request_load_scenario`` deletes the dataset created by
the setup when the scenario is stopped.'

@capture_logging(None)
def test_cleanup_deletes_dataset(self, _logger):

    reactor = Clock()
    cluster = self.make_cluster(self.get_fake_flocker_client_instance())
    write_scenario = write_request_load_scenario(reactor, cluster, 5, sample_size=3)
    d = write_scenario.start()
    d.addCallback(write_scenario.stop)
    def list_datasets(ignored):
        return write_scenario.request.control_service.list_datasets_state()
    d.addCallback(list_datasets)
    def verify_dataset_has_been_deleted(datasets):
        self.assertEqual(datasets, [])
    d.addCallback(verify_dataset_has_been_deleted)
