autodisc: don't accept NULL values for `support-info` query `group` key
[babeltrace.git] / tests / bindings / python / bt2 / test_value.py
index f1bd4949ef69bfcad945333dd58d664f9e4532ac..c73e397d9cd1433d20d050a607f48753c34d0cfc 100644 (file)
@@ -20,7 +20,6 @@ from functools import partial, partialmethod
 import operator
 import collections
 import unittest
-import numbers
 import math
 import copy
 import bt2
@@ -1536,6 +1535,15 @@ class StringValueTestCase(_TestCopySimple, unittest.TestCase):
         s1 = bt2.StringValue('allo')
         self.assertGreaterEqual('bateau', s1)
 
+    def test_in_string(self):
+        s1 = bt2.StringValue('beau grand bateau')
+        self.assertIn('bateau', s1)
+
+    def test_in_vstring(self):
+        s1 = bt2.StringValue('beau grand bateau')
+        s2 = bt2.StringValue('bateau')
+        self.assertIn(s2, s1)
+
     def test_bool_op(self):
         self.assertEqual(bool(self._def), bool(self._def_value))
 
This page took 0.025182 seconds and 4 git commands to generate.