Exemplo n.º 1
0
 def test_parse_date(self):
     date = datetime.date(year=2013, month=7, day=23)
     assert NobelObject._parse_date('2013-07-23') == date
     assert NobelObject._parse_date('9999-99-99') is None
     assert NobelObject._parse_date(9999) is None
     assert NobelObject._parse_date(None) is None
Exemplo n.º 2
0
 def test_camelize(self):
     assert NobelObject._camelize('lower') == 'lower'
     assert NobelObject._camelize('mixed_case_string') == 'mixedCaseString'
     assert NobelObject._camelize('district9_movie') == 'district9Movie'