# Path: piped/processors/datetime_processors.py
# class DateTimeParser(base.InputOutputProcessor):
# class DateFormatter(base.InputOutputProcessor):
#     def __init__(self, format_string, as_date=False, **kw):
#     def process_input(self, input, baton):
#     def __init__(self, format_string, **kw):
#     def process_input(self, input, baton):


import datetime
from twisted.trial import unittest
from twisted.internet import defer
from piped.processors import datetime_processors
# Copyright (c) 2010-2011, Found IT A/S and Piped Project Contributors.
# See LICENSE for details.




class DateTimeParserTest(unittest.TestCase):

    @defer.inlineCallbacks
    def test_parsing_and_getting_date(self):

# Path: piped/processors/datetime_processors.py
# class DateTimeParser(base.InputOutputProcessor):
# class DateFormatter(base.InputOutputProcessor):
#     def __init__(self, format_string, as_date=False, **kw):
#     def process_input(self, input, baton):
#     def __init__(self, format_string, **kw):
#     def process_input(self, input, baton):


# Path: piped/processors/test/test_datetime_processors.py
import datetime
from twisted.trial import unittest
from twisted.internet import defer
from piped.processors import datetime_processors

# Copyright (c) 2010-2011, Found IT A/S and Piped Project Contributors.
# See LICENSE for details.




class DateTimeParserTest(unittest.TestCase):

    @defer.inlineCallbacks
    def test_parsing_and_getting_date(self):

        processor = datetime_processors.DateTimeParser(format_string='%Y-%m-%dT%H:%M:%S', as_date=True)