def METHOD_NAME(self, task_id, description, task_type):
    """Assert that the dataset with the given data is in the DB
    The query is done by task_id and description, and to avoid caching,
    we query from a brand new session.
    """
    with SessionGen() as session:
        db_datasets = session.query(Dataset)\
            .filter(Dataset.task_id == task_id)\
            .filter(Dataset.description == description).all()
        self.assertEqual(len(db_datasets), 1)
        d = db_datasets[0]
        self.assertEqual(d.description, description)
        self.assertEqual(d.task_type, task_type)