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