예제 #1
0
파일: date_test.py 프로젝트: rhettg/dmc
    def test_human_tz(self):
        t = Time(2014, 4, 18, 0, 0, 0)

        d = Date(2014, 4, 18)
        with MockNow(t):
            assert_equal(d.to_human(), 'today')
            assert_equal(d.to_human(tz='US/Pacific'), 'tomorrow')
예제 #2
0
파일: date_test.py 프로젝트: wr41thx/dmc
    def test_human_tz(self):
        t = Time(2014, 4, 18, 0, 0, 0)

        d = Date(2014, 4, 18)
        with MockNow(t):
            assert_equal(d.to_human(), 'today')
            assert_equal(d.to_human(tz='US/Pacific'), 'tomorrow')
예제 #3
0
파일: date_test.py 프로젝트: rhettg/dmc
    def test_human(self):
        d = Date(2014, 4, 18)

        # This might fail under different locale?
        assert_equal(d.to_human(), "Apr 18")
예제 #4
0
파일: date_test.py 프로젝트: wr41thx/dmc
    def test_human(self):
        d = Date(2014, 4, 18)

        # This might fail under different locale?
        assert_equal(d.to_human(), "Apr 18")