# Path: tests/testapp/models.py
# class TimeSeries(models.Model):
#     date = models.DateField()
#     value = models.FloatField()
# 
#     objects = DataFrameManager()
# 
# Path: tests/settings.py
# HAS_MATPLOTLIB = False


import unittest
from rest_framework.test import APITestCase
from tests.testapp.models import TimeSeries
from .settings import HAS_MATPLOTLIB


@unittest.skipUnless(HAS_MATPLOTLIB, "requires matplotlib")
class ImageTestCase(APITestCase):
    def setUp(self):
        data = (

# Path: tests/testapp/models.py
# class TimeSeries(models.Model):
#     date = models.DateField()
#     value = models.FloatField()
# 
#     objects = DataFrameManager()
# 
# Path: tests/settings.py
# HAS_MATPLOTLIB = False


# Path: tests/test_images.py
import unittest
from rest_framework.test import APITestCase
from tests.testapp.models import TimeSeries
from .settings import HAS_MATPLOTLIB



@unittest.skipUnless(HAS_MATPLOTLIB, "requires matplotlib")
class ImageTestCase(APITestCase):
    def setUp(self):
        data = (

            ('2014-01-01', 0.5),