def test_blank(self): assert_equal(british_date_to_ga_date(''), '')
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')
def test_day_month_year(self): # lose the day - simplify for easier analysis assert_equal(british_date_to_ga_date('1/9/2012'), '201209')
def test_year(self): assert_equal(british_date_to_ga_date('2012'), '2012')