示例#1
0
 def test_blank(self):
     assert_equal(british_date_to_ga_date(''), '')
示例#2
0
 def test_month_year(self):
     # no separator - appears to be the internal GA date type
     # keep the '0' to allow sorting by text
     assert_equal(british_date_to_ga_date('12/2012'), '201212')
示例#3
0
 def test_day_month_year(self):
     # lose the day - simplify for easier analysis
     assert_equal(british_date_to_ga_date('1/9/2012'), '201209')
示例#4
0
 def test_year(self):
     assert_equal(british_date_to_ga_date('2012'), '2012')
示例#5
0
 def test_blank(self):
     assert_equal(british_date_to_ga_date(''), '')
示例#6
0
 def test_day_month_year(self):
     # lose the day - simplify for easier analysis
     assert_equal(british_date_to_ga_date('1/9/2012'), '201209')
示例#7
0
 def test_month_year(self):
     # no separator - appears to be the internal GA date type
     # keep the '0' to allow sorting by text
     assert_equal(british_date_to_ga_date('12/2012'), '201212')
示例#8
0
 def test_year(self):
     assert_equal(british_date_to_ga_date('2012'), '2012')