Exemple #1
0
 def test_value_covered_by_literal_less_true(self):
     l = Literal('test', '<', 15)
     self.assertEqual(True, l.value_covered_by_literal(14))
Exemple #2
0
 def test_value_covered_by_literal_in_false(self):
     l = Literal('test', 'in', ['1st', '2nd'])
     self.assertEqual(False, l.value_covered_by_literal('3rd'))
Exemple #3
0
 def test_value_covered_by_literal_in_true(self):
     l = Literal('test', 'in', ['1st', '2nd'])
     self.assertEqual(True, l.value_covered_by_literal('1st'))
Exemple #4
0
 def test_value_covered_by_literal_more_false(self):
     l = Literal('test', '>', -15)
     self.assertEqual(False, l.value_covered_by_literal(-15))
Exemple #5
0
 def test_value_covered_by_literal_more_true(self):
     l = Literal('test', '>', -15)
     self.assertEqual(True, l.value_covered_by_literal(-14))
Exemple #6
0
 def test_value_covered_by_literal_less_false(self):
     l = Literal('test', '<', 15)
     self.assertEqual(False, l.value_covered_by_literal(15))