コード例 #1
0
 def test_pattern_multiple_all(self):
     s = String(["foo", "bar", "baz"])
     s.condition = "Equals"
     s.apply_condition = "ALL"
     # If we change @apply_condition from the default, it should match
     # that value.
     self.assertTrue(b'apply_condition="ALL"' in s.to_xml())
コード例 #2
0
ファイル: properties_test.py プロジェクト: reza/es_eventgens
 def test_pattern_multiple_all(self):
     s = String(["foo", "bar", "baz"])
     s.condition = "Equals"
     s.apply_condition = "ALL"
     # If we change @apply_condition from the default, it should match
     # that value.
     self.assertTrue(b'apply_condition="ALL"' in s.to_xml())
コード例 #3
0
 def test_instance_multiple_all(self):
     s = String(["foo", "bar", "baz"])
     s.apply_condition = "ALL"
     # Even though we set it, this is not a pattern so @apply_condition
     # shouldn't be output.
     self.assertFalse(b'apply_condition' in s.to_xml())
コード例 #4
0
ファイル: properties_test.py プロジェクト: reza/es_eventgens
 def test_instance_multiple_all(self):
     s = String(["foo", "bar", "baz"])
     s.apply_condition = "ALL"
     # Even though we set it, this is not a pattern so @apply_condition
     # shouldn't be output.
     self.assertFalse(b'apply_condition' in s.to_xml())