tests: Add missing copyright headers
[babeltrace.git] / tests / bindings / python / bt2 / test_event_class.py
index 4d2fe60a25d65e2c2fd5ff7fcbe3d67bed4474c4..beab05cb95096febe7a95bd29692d9fa0c51c8c0 100644 (file)
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2019 EfficiOS Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; only version 2
+# of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+
 import unittest
 import bt2
 from utils import get_default_trace_class
@@ -8,11 +26,11 @@ class EventClassTestCase(unittest.TestCase):
         self._tc = get_default_trace_class()
 
         self._context_fc = self._tc.create_structure_field_class()
-        self._context_fc.append_field('allo', self._tc.create_string_field_class())
-        self._context_fc.append_field('zola', self._tc.create_signed_integer_field_class(18))
+        self._context_fc.append_member('allo', self._tc.create_string_field_class())
+        self._context_fc.append_member('zola', self._tc.create_signed_integer_field_class(18))
 
         self._payload_fc = self._tc.create_structure_field_class()
-        self._payload_fc.append_field('zoom', self._tc.create_string_field_class())
+        self._payload_fc.append_member('zoom', self._tc.create_string_field_class())
 
         self._stream_class = self._tc.create_stream_class(assigns_automatic_event_class_id=True)
 
This page took 0.023578 seconds and 4 git commands to generate.