예제 #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')