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