Bug 2026330 - python-chai fails to build with Python 3.11: AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'
Summary: python-chai fails to build with Python 3.11: AttributeError: 'ComparatorsTest...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: python-chai
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2021-11-24 11:50 UTC by Tomáš Hrnčiar
Modified: 2022-02-07 15:35 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-02-07 15:35:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2021-11-24 11:50:48 UTC
python-chai fails to build with Python 3.11.0a2.


======================================================================
ERROR: test_all (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 152, in test_all
    self.assertEquals( 'foo'.encode('ascii'), bytearray('foo'.encode('ascii')) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_almost_equal_repr (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 102, in test_almost_equal_repr
    self.assertEquals(repr(comp), "AlmostEqual(value: 3.14159265, places: 3)")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_any_repr (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 125, in test_any_repr
    self.assertEquals(repr(comp), "Any([1, 2, 3, Any([IsA(str), Is(<class 'str'>)])])")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_eq (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 50, in test_eq
    self.assertEquals( comp, 3 )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_equals_repr (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 46, in test_equals_repr
    self.assertEquals(str(comp), "3")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_is (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 82, in test_is
    self.assertEquals( obj1, obj2 )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_is_a_format_name (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 71, in test_is_a_format_name
    self.assertEquals(comp._format_name(), "str")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_is_a_repr (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 67, in test_is_a_repr
    self.assertEquals(repr(comp), "IsA(str)")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_is_repr (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 93, in test_is_repr
    self.assertEquals(repr(Is(obj)), "Is(An Object)" )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_like_init (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 217, in test_like_init
    self.assertEquals( {'foo':'bar'}, c._src )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_like_repr (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 235, in test_like_repr
    self.assertEquals( repr(c), "Like({'foo': 'bar'})" )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_regex_repr (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 112, in test_regex_repr
    self.assertEquals(repr(comp), "Regex(pattern: [wf][io]{2}, flags: 0)")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_variable (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 189, in test_variable
    self.assertEquals( 0, len(Variable._cache) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_variable_repr (tests.comparator_test.ComparatorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/comparator_test.py", line 213, in test_variable_repr
    self.assertEquals( repr(v), "Variable('foo')" )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ComparatorsTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_any_order (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 128, in test_any_order
    self.assertEquals( exp, exp.any_order().times(1) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_any_order_with_no_max (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 139, in test_any_order_with_no_max
    self.assertEquals( exp, exp.any_order().at_least_once() )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_at_least (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 102, in test_at_least
    self.assertEquals( exp, exp.at_least(10) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_at_least_once (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 96, in test_at_least_once
    self.assertEquals( exp, exp.at_least_once() )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_at_most (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 115, in test_at_most
    self.assertEquals( exp, exp.args(1).at_most(10) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_at_most_once (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 109, in test_at_most_once
    self.assertEquals( exp, exp.args(1).at_most_once() )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_once (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 122, in test_once
    self.assertEquals( exp, exp.args(1).once() )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_return_value_with_exception_class (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 264, in test_return_value_with_exception_class
    self.assertEquals( exp, exp.raises(CustomException) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_return_value_with_exception_instance (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 272, in test_return_value_with_exception_instance
    self.assertEquals( exp, exp.raises(CustomException()) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_return_value_with_value (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 226, in test_return_value_with_value
    self.assertEquals(exp.test(), 123)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_return_value_with_variable (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 234, in test_return_value_with_variable
    self.assertEquals(exp.test(), 123)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_return_value_with_variable_in_tuple (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 243, in test_return_value_with_variable_in_tuple
    self.assertEquals(exp.test(), (123,'foo'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_side_effect (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 154, in test_side_effect
    self.assertEquals( exp, exp.side_effect(effect) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_side_effect_with_an_exception (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 188, in test_side_effect_with_an_exception
    self.assertEquals( exp, exp.side_effect(effect).raises(Zono) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_side_effect_with_args (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 165, in test_side_effect_with_args
    self.assertEquals( exp, exp.side_effect(effect, 'a', b='c') )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_side_effect_with_passed_args (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 177, in test_side_effect_with_passed_args
    self.assertEquals( exp, exp.side_effect(effect) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_teardown (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 202, in test_teardown
    self.assertEquals( ['foo'], called )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_times (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 90, in test_times
    self.assertEquals( exp, exp.times(3) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_with_returns_return_value (tests.expectation_test.ExpectationRule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/expectation_test.py", line 249, in test_with_returns_return_value
    self.assertEquals(num, 123)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ExpectationRule' object has no attribute 'assertEquals'

======================================================================
ERROR: test_expect (tests.chai_test.ChaiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/chai_test.py", line 106, in test_expect
    self.assertEquals( deque(), case._stubs )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChaiTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_mock_no_binding (tests.chai_test.ChaiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/chai_test.py", line 120, in test_mock_no_binding
    self.assertEquals( deque(), case._mocks )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChaiTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_mock_with_attr_binding (tests.chai_test.ChaiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/chai_test.py", line 139, in test_mock_with_attr_binding
    self.assertEquals( deque(), case._mocks )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChaiTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_runs_unmet_expectations (tests.chai_test.ChaiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/chai_test.py", line 172, in test_runs_unmet_expectations
    self.assertEquals(1, stub.unmet_calls)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChaiTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_setup (tests.chai_test.ChaiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/chai_test.py", line 62, in test_setup
    self.assertEquals( deque(), case._stubs )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChaiTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub (tests.chai_test.ChaiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/chai_test.py", line 90, in test_stub
    self.assertEquals( deque(), case._stubs )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChaiTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_teardown_closes_out_stubs_and_mocks (tests.chai_test.ChaiTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/chai_test.py", line 79, in test_teardown_closes_out_stubs_and_mocks
    self.assertEquals( 1, stub.calls )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ChaiTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_call_raises_unexpected_call_when_closed_and_no_matching (tests.stub_test.StubClassTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 294, in test_call_raises_unexpected_call_when_closed_and_no_matching
    self.assertEquals(0, s._expectations[0]._match_count)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubClassTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_call_when_args_match (tests.stub_test.StubClassTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 262, in test_call_when_args_match
    self.assertEquals('success', s('foo'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubClassTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_expect (tests.stub_test.StubClassTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 239, in test_expect
    self.assertEquals([], s._expectations)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubClassTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_init (tests.stub_test.StubClassTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 220, in test_init
    self.assertEquals('obj', s._obj)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubClassTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_teardown (tests.stub_test.StubClassTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 234, in test_teardown
    self.assertEquals([], s._expectations)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubClassTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_call_orig (tests.stub_test.StubFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 405, in test_call_orig
    self.assertEquals(12, s.call_orig(4))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubFunctionTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_init (tests.stub_test.StubFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 387, in test_init
    self.assertEquals(s._instance, samples)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubFunctionTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_init_with_object_method (tests.stub_test.StubFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 396, in test_init_with_object_method
    self.assertEquals(True, s._was_object_method)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubFunctionTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_name (tests.stub_test.StubFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 399, in test_name
    s = StubFunction(samples.mod_func_1)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/chai/stub.py", line 491, in __init__
    raise UnsupportedStub("Failed to find name of %s" % (obj))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chai.exception.UnsupportedStub: Failed to find name of <chai.stub.StubFunction object at 0x7f5ce4b20580>

======================================================================
ERROR: test_teardown (tests.stub_test.StubFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 410, in test_teardown
    s = StubFunction(samples.mod_func_1)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/chai/stub.py", line 491, in __init__
    raise UnsupportedStub("Failed to find name of %s" % (obj))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
chai.exception.UnsupportedStub: Failed to find name of <chai.stub.StubFunction object at 0x7f5ce4b20580>

======================================================================
ERROR: test_teardown_on_object_method (tests.stub_test.StubFunctionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 416, in test_teardown_on_object_method
    self.assertEquals(object.__new__, getattr(x, '__new__'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubFunctionTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_call_orig (tests.stub_test.StubMethodTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 353, in test_call_orig
    self.assertEquals(3, sa.call_orig())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubMethodTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_init (tests.stub_test.StubMethodTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 319, in test_init
    self.assertEquals(s._obj, orig)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubMethodTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_name (tests.stub_test.StubMethodTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 337, in test_name
    self.assertEquals("Expect.closed", s.name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubMethodTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_teardown (tests.stub_test.StubMethodTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 365, in test_teardown
    self.assertEquals(orig, f.bar)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubMethodTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_teardown_of_bound_instance_methods_exported_in_module (tests.stub_test.StubMethodTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 381, in test_teardown_of_bound_instance_methods_exported_in_module
    self.assertEquals(orig, samples.mod_instance_foo)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubMethodTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_call_orig (tests.stub_test.StubMethodWrapperTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 578, in test_call_orig
    self.assertEquals(3, sg.call_orig())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubMethodWrapperTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_init (tests.stub_test.StubMethodWrapperTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 556, in test_init
    self.assertEquals(s._instance, foo)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubMethodWrapperTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_name (tests.stub_test.StubMethodWrapperTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 565, in test_name
    self.assertEquals("Foo.__hash__", s.name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubMethodWrapperTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_teardown (tests.stub_test.StubMethodWrapperTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 588, in test_teardown
    self.assertEquals(orig, obj.__hash__)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubMethodWrapperTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_call (tests.stub_test.StubNewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 452, in test_call
    self.assertEquals('success', Foo('state', a='b'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubNewTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_init (tests.stub_test.StubNewTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 438, in test_init
    self.assertEquals(s._instance, Foo)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubNewTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_name (tests.stub_test.StubPropertyTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 308, in test_name
    self.assertEquals(s.name, 'Foo.prop')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubPropertyTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_bound_method_for_classmethod_with_attr_name (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 166, in test_stub_bound_method_for_classmethod_with_attr_name
    self.assertEquals(res, stub(Foo,'bar'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_bound_method_for_classmethod_with_obj_ref (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 176, in test_stub_bound_method_for_classmethod_with_obj_ref
    self.assertEquals(res, stub(Foo.bar))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_bound_method_for_instance_with_attr_name (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 139, in test_stub_bound_method_for_instance_with_attr_name
    self.assertEquals(res._instance, foo)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_bound_method_for_instance_with_obj_ref (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 153, in test_stub_bound_method_for_instance_with_obj_ref
    self.assertEquals(res._instance, foo)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_method_wrapper_with_attr_name (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 186, in test_stub_method_wrapper_with_attr_name
    self.assertEquals(res, stub(foo, '__hash__'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_method_wrapper_with_obj_ref (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 196, in test_stub_method_wrapper_with_obj_ref
    self.assertEquals(res, stub(foo.__hash__))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_mock_with_attr_name (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 83, in test_stub_mock_with_attr_name
    self.assertEquals(res, f.bar.__call__)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_mock_with_obj_ref (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 94, in test_stub_mock_with_obj_ref
    self.assertEquals(res, f.bar.__call__)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_module_function_with_attr_name (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 202, in test_stub_module_function_with_attr_name
    self.assertEquals(res, getattr(samples,'mod_func_1'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_module_function_with_obj_ref (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 209, in test_stub_module_function_with_obj_ref
    self.assertEquals(res, getattr(samples,'mod_func_1'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_type_with_obj_ref (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 103, in test_stub_type_with_obj_ref
    self.assertEquals(res, Foo.__new__)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_stub_unbound_method_with_attr_name (tests.stub_test.StubTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 118, in test_stub_unbound_method_with_attr_name
    self.assertEquals(res, stub(Foo,'bar'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_call_acts_as_any_instance (tests.stub_test.StubUnboundMethodTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 547, in test_call_acts_as_any_instance
    self.assertEquals(2, s.calls)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubUnboundMethodTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_init (tests.stub_test.StubUnboundMethodTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 509, in test_init
    self.assertEquals(s._instance, Foo)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubUnboundMethodTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_name (tests.stub_test.StubUnboundMethodTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 518, in test_name
    self.assertEquals("Expect.closed", s.name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubUnboundMethodTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_teardown (tests.stub_test.StubUnboundMethodTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 528, in test_teardown
    self.assertEquals(orig, Foo.bar)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubUnboundMethodTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_call_orig (tests.stub_test.StubWrapperDescriptionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 615, in test_call_orig
    self.assertEquals(foo_str, s.call_orig())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubWrapperDescriptionTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_init (tests.stub_test.StubWrapperDescriptionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 596, in test_init
    self.assertEquals(s._obj, Foo)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubWrapperDescriptionTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_name (tests.stub_test.StubWrapperDescriptionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 604, in test_name
    self.assertEquals("Foo.__hash__", s.name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubWrapperDescriptionTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_teardown (tests.stub_test.StubWrapperDescriptionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/stub_test.py", line 623, in test_teardown
    self.assertEquals(orig, Foo.__hash__)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'StubWrapperDescriptionTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_iterative_expectations (tests.functional_test.FunctionalTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/functional_test.py", line 68, in test_iterative_expectations
    assert_equals( 3, f.bar(3) )
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_properties_using_attr_name_on_an_instance_only (tests.functional_test.FunctionalTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/functional_test.py", line 23, in test_properties_using_attr_name_on_an_instance_only
    assert_equals( 'foo', foo.prop )
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_properties_using_obj_ref_on_a_class_and_using_get_first (tests.functional_test.FunctionalTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/functional_test.py", line 42, in test_properties_using_obj_ref_on_a_class_and_using_get_first
    assert_equals( 'foo', Foo().prop )
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_properties_using_obj_ref_on_a_class_and_using_set_first (tests.functional_test.FunctionalTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/functional_test.py", line 59, in test_properties_using_obj_ref_on_a_class_and_using_set_first
    assert_equals( 'foo', Foo().prop )
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_almost_equals_comparator (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 265, in test_almost_equals_comparator
    assert_equals(obj.bound_method(10.12), 100)
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expect_unbound_method_acts_as_any_instance (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 193, in test_expect_unbound_method_acts_as_any_instance
    assert_equals('world', obj2.bound_method('hello'))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_any_order_without_count_modifiers (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 121, in test_expects_any_order_without_count_modifiers
    assert_equals(4, obj.bound_method(3))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_bound_method_at_least_as_last_expectation (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 83, in test_expects_bound_method_at_least_as_last_expectation
    assert_equals(12, obj.bound_method(1, 2))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_bound_method_at_least_with_other_expectation_and_anyorder (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 72, in test_expects_bound_method_at_least_with_other_expectation_and_anyorder
    assert_equals(12, obj.bound_method(1, 2))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_bound_method_at_least_with_other_expectation_and_no_anyorder (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 61, in test_expects_bound_method_at_least_with_other_expectation_and_no_anyorder
    assert_equals(12, obj.bound_method(1, 2))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_bound_method_at_most (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 91, in test_expects_bound_method_at_most
    assert_equals(12, obj.bound_method(1, 2))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_bound_method_can_be_used_for_iterative_testing (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 136, in test_expects_bound_method_can_be_used_for_iterative_testing
    assert_equals(12, obj.bound_method(1, 2))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_bound_method_returns (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 53, in test_expects_bound_method_returns
    assert_equals(12, obj.bound_method(1, 2))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_class_method (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 207, in test_expects_class_method
    assert_equals(12, SampleBase.a_classmethod())
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_on_builtin_function (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 48, in test_expects_on_builtin_function
    assert_equals('ok', os.remove('foo'))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_expects_property (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 41, in test_expects_property
    assert_equals("property value", obj.prop)
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_function_comparator (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 253, in test_function_comparator
    assert_equals(obj.bound_method(100), 100)
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_ignore_arg (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 248, in test_ignore_arg
    assert_equals(obj.bound_method('first_name'), 100)
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_in_comparator (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 258, in test_in_comparator
    assert_equals(obj.bound_method(['name', 'age']), 100)
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_is_comparator (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 270, in test_is_comparator
    assert_equals(obj.bound_method(obj), 100)
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_regex_comparator (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 243, in test_regex_comparator
    assert_equals(obj.bound_method('first_name'), 100)
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_spy (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 295, in test_spy
    assert_equals(['v1'], list(obj._deque))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_var_comparator (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 284, in test_var_comparator
    assert_equals('v1', var('value1').value)
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: tests_expects_bound_method_any_order_with_fixed_maxes (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 100, in tests_expects_bound_method_any_order_with_fixed_maxes
    assert_equals(4, obj.bound_method(3))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: tests_expects_bound_method_any_order_with_mins (tests.sample_test.SampleBaseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/chai/chai.py", line 63, in wrapper
    func(self, *args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/chai-1.1.2/tests/sample_test.py", line 108, in tests_expects_bound_method_any_order_with_mins
    assert_equals(4, obj.bound_method(3))
    ^^^^^^^^^^^^^
NameError: name 'assert_equals' is not defined

======================================================================
ERROR: test_call_not_raises_unexpectedcall_when_stubbed (tests.mock_test.MockTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/mock_test.py", line 64, in test_call_not_raises_unexpectedcall_when_stubbed
    self.assertEquals( 'success', m() )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MockTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_container_interface_when_stubbed (tests.mock_test.MockTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/mock_test.py", line 100, in test_container_interface_when_stubbed
    self.assertEquals( 42, len(m) )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MockTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_get_attribute_auto_method_not_raises_unexpectedcall_multiple_depths (tests.mock_test.MockTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/mock_test.py", line 50, in test_get_attribute_auto_method_not_raises_unexpectedcall_multiple_depths
    self.assertEquals( 'success', m.foo.bar() )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MockTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_get_attribute_auto_method_not_raises_unexpectedcall_when_stubbed (tests.mock_test.MockTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/mock_test.py", line 45, in test_get_attribute_auto_method_not_raises_unexpectedcall_when_stubbed
    self.assertEquals( 'success', m.foo() )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MockTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_get_attribute_creates_a_mock_method (tests.mock_test.MockTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/mock_test.py", line 20, in test_get_attribute_creates_a_mock_method
    self.assertEquals( 'mock', m._name )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MockTest' object has no attribute 'assertEquals'

======================================================================
ERROR: test_get_attribute_does_not_overwrite_existing_attr (tests.mock_test.MockTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/chai-1.1.2/tests/mock_test.py", line 55, in test_get_attribute_does_not_overwrite_existing_attr
    self.assertEquals( 42, m.foo )
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MockTest' object has no attribute 'assertEquals'

----------------------------------------------------------------------
Ran 197 tests in 0.037s

FAILED (errors=114, skipped=5)
Test failed: <unittest.runner.TextTestResult run=197 errors=114 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=197 errors=114 failures=0>

Removed many old deprecated unittest features:

    TestCase method aliases failUnlessEqual, failIfEqual, failUnless, failIf, failUnlessRaises, failUnlessAlmostEqual, failIfAlmostEqual (deprecated in Python 3.1), assertEquals, assertNotEquals, assert_, assertAlmostEquals, assertNotAlmostEquals, assertRegexpMatches, assertRaisesRegexp (deprecated in Python 3.2), and assertNotRegexpMatches (deprecated in Python 3.5).

    Undocumented and broken TestCase method assertDictContainsSubset (deprecated in Python 3.2).

    Undocumented <unittest.TestLoader.loadTestsFromModule> TestLoader.loadTestsFromModule() parameter use_load_tests (deprecated and ignored since Python 3.2).

    An alias of the TextTestResult class: _TextTestResult (deprecated in Python 3.2).

(Contributed by Serhiy Storchaka in bpo-45162.)

https://bugs.python.org/issue45162
https://docs.python.org/3.11/whatsnew/3.11.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/02984608-python-chai/

For all our attempts to build python-chai with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-chai/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Hugo van Kemenade 2021-12-31 09:38:27 UTC
Upstream PR from 2020: https://github.com/agoragames/chai/pull/37

No commits to repo since 2017: https://github.com/agoragames/chai

Comment 2 Tomáš Hrnčiar 2022-02-07 15:35:11 UTC
Removal of unittest aliases was reverted in Python 3.11 and will be part of Python 3.12, so the above failure is not present anymore.


Note You need to log in before you can comment on or make changes to this bug.