示例#1
0
 def test_prettyday_should_return_yesterday(self):
     """
     Verify case where the prettyday function should return the string 'yesterday'
     :return:
     """
     yesterday = go.today() - 1
     self.assertEqual('yesterday', go.prettyday(yesterday))
示例#2
0
 def test_prettyday_should_return_today(self):
     """
     Verify case where the prettyday function should return the string 'today'
     :return:
     """
     _today = go.today()
     self.assertEqual('today', go.prettyday(_today))
示例#3
0
文件: go_test.py 项目: p16n/f5go
 def test_prettyday_should_return_yesterday(self):
     """
     Verify case where the prettyday function should return the string 'yesterday'
     :return:
     """
     yesterday = go.today() - 1
     self.assertEqual('yesterday', go.prettyday(yesterday))
示例#4
0
文件: go_test.py 项目: p16n/f5go
 def test_prettyday_should_return_today(self):
     """
     Verify case where the prettyday function should return the string 'today'
     :return:
     """
     _today = go.today()
     self.assertEqual('today', go.prettyday(_today))
示例#5
0
 def test_prettyday_should_return_num_of_months(self):
     """
     Verify cases where the prettyday function should return the string for the number of months
     :return:
     """
     today = go.today()
     months_ago = today - 95
     self.assertEqual('3 months ago', go.prettyday(months_ago))
示例#6
0
文件: go_test.py 项目: p16n/f5go
 def test_prettyday_should_return_num_of_months(self):
     """
     Verify cases where the prettyday function should return the string for the number of months
     :return:
     """
     today = go.today()
     months_ago = today - 95
     self.assertEqual('3 months ago', go.prettyday(months_ago))