'Test that we get a CommandError when we don\'t supply before and after
dates.'

@ddt.data(('2015-05-05', None), (None, '2015-05-05'))
@ddt.unpack
def test_date_errors(self, after, before):

    with self.assertRaises(CommandError):
        call_command('fail_old_tasks', QUEUING, before=before, after=after)
