Exemple #1
0
    def test_shift_02(self):
        """
        [対象] _shift() : No.02
        [前提] 日時の文字列表現を引数に指定する(変換後に日付を跨ぐ)。
        [結果] 9時間後の日時の文字列表現が返却される。
        """
        timeshift = self._get_target_module()
        actual = timeshift._shift('1988-10-19 18:44:20')

        self.assertEqual('1988-10-20 03:44:20', actual)
Exemple #2
0
    def test_shift_01(self):
        """
        [対象] _shift() : No.01
        [前提] 日時の文字列表現を引数に指定する(変換後に日付を跨がない)。
        [結果] 9時間後の日時の文字列表現が返却される。
        """
        timeshift = self._get_target_module()
        actual = timeshift._shift('2015-08-03 09:15:10')

        self.assertEqual('2015-08-03 18:15:10', actual)