def _test_common_body(self, prepare_fun, expected_data):
     prepare_fun()
     result = collector_entry_point.execute()
     self.assertTrue(result)
     actual = self._dest_db_manager.execute_query('SELECT * FROM STAT_DATA')
     self._check_data('ics.db', expected_data, actual)
     self._dest_db_manager.execute_nonquery('DELETE FROM STAT_DATA')
def main():
    result = collector_entry_point.execute()
    if not result:
        sys.exit(-1)
 def test_on_ics_db_with_test_data_and_wrong_license(self):
     self._prepare_data(666)
     result = collector_entry_point.execute()
     self.assertFalse(result)