# Path: channelworm/ion_channel/models.py
# class ParamDict(models.Model):
# class KeyVal(models.Model):
# class IonChannel(models.Model):
# class Cell(models.Model):
# class Reference(models.Model):
# class CellChannel(models.Model):
# class Experiment(models.Model):
# class PatchClamp(models.Model):
# class Graph(models.Model):
# class GraphData(models.Model):
# class IonChannelModel(models.Model):
# class Protein(models.Model):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def asarray(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     PMID = models.CharField(max_length=300,blank=True, null=True)


import pytest
from django.utils import timezone
from channelworm.ion_channel.models import (
    IonChannel, Reference, Experiment, 
    PatchClamp, User, Graph, GraphData
)


@pytest.fixture(scope='session')
def data_pool():
    return DataPool()

class DataPool(object):
    """
    Session-level pytest fixture (see 'data_pool()' above)
    which can create a data object of several types, or return
    one if it has been created previously.

    Implementation of the 'Object Pool' design pattern.
    """
    def get_user(self):
        """
        Fixture for getting a User object.
        If we already created one, we can just get it
        rather than making another.
        """
        if not hasattr(self, 'user'):

# Path: channelworm/ion_channel/models.py
# class ParamDict(models.Model):
# class KeyVal(models.Model):
# class IonChannel(models.Model):
# class Cell(models.Model):
# class Reference(models.Model):
# class CellChannel(models.Model):
# class Experiment(models.Model):
# class PatchClamp(models.Model):
# class Graph(models.Model):
# class GraphData(models.Model):
# class IonChannelModel(models.Model):
# class Protein(models.Model):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     def asarray(self):
#     def __unicode__(self):
#     def __unicode__(self):
#     PMID = models.CharField(max_length=300,blank=True, null=True)


# Path: tests/conftest.py
import pytest
from django.utils import timezone
from channelworm.ion_channel.models import (
    IonChannel, Reference, Experiment, 
    PatchClamp, User, Graph, GraphData
)



@pytest.fixture(scope='session')
def data_pool():
    return DataPool()

class DataPool(object):
    """
    Session-level pytest fixture (see 'data_pool()' above)
    which can create a data object of several types, or return
    one if it has been created previously.

    Implementation of the 'Object Pool' design pattern.
    """
    def get_user(self):
        """
        Fixture for getting a User object.
        If we already created one, we can just get it
        rather than making another.
        """
        if not hasattr(self, 'user'):

            self.user = User.objects.create(username='user')