import unittest
import maya


class SimpleTest(unittest.TestCase):

    def test_rfc2822(self):
        r = maya.now().rfc2822()
        d = maya.MayaDT.from_rfc2822(r)
        assert r == d.rfc2822()

    def test_iso8601(self):
        r = maya.now().iso8601()
        d = maya.MayaDT.from_iso8601(r)
        assert r == d.iso8601()

    def test_human_when(self):
        r1 = maya.when('yesterday')
        r2 = maya.when('today')

        assert r2.day - r1.day == 1

    def test_dt_tz_translation(self):
        d1 = maya.now().datetime()
        d2 = maya.now().datetime(to_timezone='US/Eastern')
        assert d1.hour - d2.hour == 5




if __name__ == "__main__":
    unittest.main()

@@ -637,16 +637,273 @@
 r == 5%0A%0A
+    def test_dt_tz_naive(self):%0A        d1 = maya.now().datetime(naive=True)%0A        assert d1.tzinfo is None%0A%0A        d2 = maya.now().datetime(to_timezone='US/Eastern')%0A        assert d2.tzinfo == maya.now().timezone%0A        assert d1.hour - d2.hour == 5%0A%0A
 %0A%0A%0Aif __

test naive timezones