Example #1
0
 def test_blank(self):
     assert_equal(british_date_to_ga_date(''), '')
Example #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')
Example #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')
Example #4
0
 def test_year(self):
     assert_equal(british_date_to_ga_date('2012'), '2012')
Example #5
0
 def test_blank(self):
     assert_equal(british_date_to_ga_date(''), '')
Example #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')
Example #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')
Example #8
0
 def test_year(self):
     assert_equal(british_date_to_ga_date('2012'), '2012')