# Path: ratechecker/tests/helpers.py
# def write_sample_dataset(filename):
#     content = get_sample_dataset_zipfile().read()
#     with open(filename, "wb") as f:
#         f.write(content)


import os
import shutil
import tempfile
from django.core.management import call_command
from django.core.management.base import CommandError
from django.test import TestCase
from mock import patch
from ratechecker.tests.helpers import write_sample_dataset





class LoadDailyTestCase(TestCase):
    def setUp(self):
        self.tempdir = tempfile.mkdtemp()

    def tearDown(self):
        shutil.rmtree(self.tempdir)

    def touch_file(self, f):
        with open(f, "a"):
            os.utime(f, None)

    def test_run_command_no_arguments(self):

# Path: ratechecker/tests/helpers.py
# def write_sample_dataset(filename):
#     content = get_sample_dataset_zipfile().read()
#     with open(filename, "wb") as f:
#         f.write(content)


# Path: ratechecker/tests/management/commands/test_load_daily_data.py
import os
import shutil
import tempfile
from django.core.management import call_command
from django.core.management.base import CommandError
from django.test import TestCase
from mock import patch
from ratechecker.tests.helpers import write_sample_dataset






class LoadDailyTestCase(TestCase):
    def setUp(self):
        self.tempdir = tempfile.mkdtemp()

    def tearDown(self):
        shutil.rmtree(self.tempdir)

    def touch_file(self, f):
        with open(f, "a"):
            os.utime(f, None)

    def test_run_command_no_arguments(self):

        with self.assertRaises(CommandError):