import os
import glob
import shutil
from nose.tools import (assert_equal, assert_is_not_none)
import qixnat
from ... import (project, ROOT)
from ...helpers.logging import logger
from qipipe.helpers import qiprofile

COLLECTION = 'Sarcoma'
"""The test collection."""

SUBJECT = 'Sarcoma001'
"""The test subjects."""

SESSION = 'Session01'
"""The test session."""


class TestQIProfile(object):
    """qiprofile update tests."""

    def setUp(self):
        self._clean()
        self._seed()

    def tearDown(self):
        self._clean()

    def test_sync_session(self):
        logger(__name__).debug("Testing qiprofile sync on %s %s..." %
                               (SUBJECT, SESSION))
    
    def _clean(self):
        """Deletes the test XNAT session."""
        with qixnat.connect() as xnat:
            # Delete the test subject, if it exists.
            xnat.delete_subjects(project, subject)
    
    def _seed(self):
        """Populates the test XNAT session."""
        with qixnat.connect() as xnat:
            # Delete the test subject, if it exists.
            xnat.delete_subjects(project(), subject)


if __name__ == "__main__":
    import nose
    nose.main(defaultTest=__name__)

Add stub for qiprofile update test.