X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_trace.py;fp=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_trace.py;h=0cb3b94eb46b6386c640782df03511b803131afd;hb=b7bc733b63d71bf9c9e3ed510cd82e3ad8751a68;hp=5a9275628cf7b0ac6018955aa146eea6448f9704;hpb=5783664e46332216fd38a7b287258a7c9543af57;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_trace.py b/tests/bindings/python/bt2/test_trace.py index 5a927562..0cb3b94e 100644 --- a/tests/bindings/python/bt2/test_trace.py +++ b/tests/bindings/python/bt2/test_trace.py @@ -29,7 +29,7 @@ class TraceTestCase(unittest.TestCase): trace = self._tc() self.assertIsNone(trace.name) self.assertIsNone(trace.uuid) - self.assertEqual(len(trace.env), 0) + self.assertEqual(len(trace.environment), 0) self.assertEqual(len(trace.user_attributes), 0) def test_create_invalid_name(self): @@ -61,15 +61,15 @@ class TraceTestCase(unittest.TestCase): self.assertEqual(trace.uuid, uuid.UUID('da7d6b6f-3108-4706-89bd-ab554732611b')) def test_env_get(self): - trace = self._tc(env={'hello': 'you', 'foo': -5}) - self.assertEqual(trace.env['hello'], 'you') - self.assertEqual(trace.env['foo'], -5) + trace = self._tc(environment={'hello': 'you', 'foo': -5}) + self.assertEqual(trace.environment['hello'], 'you') + self.assertEqual(trace.environment['foo'], -5) def test_env_get_non_existent(self): - trace = self._tc(env={'hello': 'you', 'foo': -5}) + trace = self._tc(environment={'hello': 'you', 'foo': -5}) with self.assertRaises(KeyError): - trace.env['lel'] + trace.environment['lel'] def test_len(self): trace = self._tc()