Exemple #1
0
 def test_ne(self):
     self.build_and_assert_expression(
         NotEquals(self.value, self.value2), {
             'format': '{0} {operator} {1}',
             'operator': '<>',
             'values': (self.value, self.value2)
         })
Exemple #2
0
 def test_not_equal_operator(self):
     cond1 = Equals(self.value, self.value2)
     cond2 = NotEquals(self.value, self.value)
     self.assertTrue(cond1 != cond2)
Exemple #3
0
 def test_equal_operator_type(self):
     cond1 = Equals(self.value, self.value2)
     cond2 = NotEquals(self.value, self.value2)
     self.assertFalse(cond1 == cond2)
Exemple #4
0
 def test_ne(self):
     self.assertEqual(self.attr.ne(self.value),
                      NotEquals(self.attr, self.value))
Exemple #5
0
 def test_equal_operator_type(self):
     cond1 = Equals(self.value, self.value2)
     cond2 = NotEquals(self.value, self.value2)
     assert cond1 != cond2
Exemple #6
0
 def test_ne(self):
     assert self.attr.ne(self.value) == NotEquals(self.attr, self.value)