コード例 #1
0
 def test_invalid_record_list_to_df_conversio(self):
     record_list = RecordUtil().initInvalidRecordList()
     returned_value = RecordStatisticsHandler().converRecordsToDf(
         record_list)
     expected_value = StatisticsUtil().init_record_df()
     print(returned_value)
     self.assertEquals(None, returned_value)
コード例 #2
0
 def test_data_group_by_year(self):
     record_list = RecordUtil().initValidRecordList()
     handler = RecordStatisticsHandler()
     records_df = handler.converRecordsToDf(record_list)
     expected_value = StatisticsUtil().init_record_df_grouped_by_year()
     returned_value = handler.group_df_data_by_year(records_df)
     self.assertTrue(returned_value.equals(expected_value))
コード例 #3
0
 def test_record_list_to_df_conversio(self):
     record_list = RecordUtil().initValidRecordList()
     returned_value = RecordStatisticsHandler().converRecordsToDf(
         record_list)
     expected_value = StatisticsUtil().init_record_df()
     self.assertTrue(expected_value.equals(returned_value))