Revision 45317e3a qa/qa_utils.py

b/qa/qa_utils.py
118 118
    raise qa_error.Error("%r == %r" % (first, second))
119 119

  
120 120

  
121
def AssertNotEqual(first, second):
122
  """Raises an error when values are equal.
123

  
124
  """
125
  if not first != second:
126
    raise qa_error.Error("%r != %r" % (first, second))
127

  
128

  
129 121
def AssertMatch(string, pattern):
130 122
  """Raises an error when string doesn't match regexp pattern.
131 123

  

Also available in: Unified diff