AssertionError

0 != 3 search by Google

args : tuple
('0 != 3',)

Traceback

  1. /usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments )

    self : _Outcome
    <unittest.case._Outcome object at 0x7fb03a09b9d0>
    test_case : ExtNetworks
    test_attach_and_detach_extnetworks (c2tests.ec2.extnetworks.ExtNetworks)
    isTest : bool
    True
    1. @contextlib.contextmanager
    2. def testPartExecutor(self, test_case, isTest=False):
    3. old_success = self.success
    4. self.success = True
    5. try:
    6. yield
    7. except KeyboardInterrupt:
    8. raise
    9. except SkipTest as e:
    10. self.success = False

    Locals

    exc_info : NoneType
    None
    old_success : bool
    True

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fb0513c8fd0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  2. /usr/local/lib/python3.7/unittest/case.py in run (arguments )

    self : ExtNetworks
    test_attach_and_detach_extnetworks (c2tests.ec2.extnetworks.ExtNetworks)
    result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    1. with outcome.testPartExecutor(self):
    2. self.setUp()
    3. if outcome.success:
    4. outcome.expecting_failure = expecting_failure
    5. with outcome.testPartExecutor(self, isTest=True):
    6. testMethod()
    7. outcome.expecting_failure = False
    8. with outcome.testPartExecutor(self):
    9. self.tearDown()

    Locals

    expecting_failure : bool
    False
    expecting_failure_class : bool
    False
    expecting_failure_method : bool
    False
    orig_result : DiagnosticsTestResult
    <xmlrunner.extra.diagnosticstestrunner.DiagnosticsTestResult run=1 errors=0 failures=0>
    outcome : _Outcome
    <unittest.case._Outcome object at 0x7fb03a09b9d0>
    testMethod : method
    <bound method ExtNetworks.test_attach_and_detach_extnetworks of <c2tests.ec2.extnetworks.ExtNetworks testMethod=test_attach_and_detach_extnetworks>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fb0513c8fd0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  3. /root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/extnetworks.py in test_attach_and_detach_extnetworks (arguments )

    self : ExtNetworks
    test_attach_and_detach_extnetworks (c2tests.ec2.extnetworks.ExtNetworks)
    1. """Attach and detach all external networks for test user (be patient)"""
    2. extnetworks = self.conn.get_all_extnetworks()
    3. # NOTE: __NETWORK_NUM external networks must be preconfigured
    4. self.assertEquals(len(extnetworks), self.__NETWORK_NUM)
    5. # Attempt to create switches
    6. for extnetwork in extnetworks:
    7. switch = self.create_virtual_switch(

    Locals

    extnetworks : ResultSet
    []

    Globals

  4. /usr/local/lib/python3.7/unittest/case.py in deprecated_func (arguments )

    *args : tuple
    (<c2tests.ec2.extnetworks.ExtNetworks testMethod=test_attach_and_detach_extnetworks>, 0, 3)
    **kwargs : dict
    {}
    1. def _deprecate(original_func):
    2. def deprecated_func(*args, **kwargs):
    3. warnings.warn(
    4. 'Please use {0} instead.'.format(original_func.__name__),
    5. DeprecationWarning, 2)
    6. return original_func(*args, **kwargs)
    7. return deprecated_func
    8. # see #9424
    9. failUnlessEqual = assertEquals = _deprecate(assertEqual)

    Locals

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fb0513c8fd0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  5. /usr/local/lib/python3.7/unittest/case.py in assertEqual (arguments )

    self : ExtNetworks
    test_attach_and_detach_extnetworks (c2tests.ec2.extnetworks.ExtNetworks)
    first : int
    0
    second : int
    3
    msg : NoneType
    None
    1. def assertEqual(self, first, second, msg=None):
    2. """Fail if the two objects are unequal as determined by the '=='
    3. operator.
    4. """
    5. assertion_func = self._getAssertEqualityFunc(first, second)
    6. assertion_func(first, second, msg=msg)
    7. def assertNotEqual(self, first, second, msg=None):
    8. """Fail if the two objects are equal as determined by the '!='
    9. operator.

    Locals

    assertion_func : method
    <bound method TestCase._baseAssertEqual of <c2tests.ec2.extnetworks.ExtNetworks testMethod=test_attach_and_detach_extnetworks>>

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fb0513c8fd0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.
  6. /usr/local/lib/python3.7/unittest/case.py in _baseAssertEqual (arguments )

    self : ExtNetworks
    test_attach_and_detach_extnetworks (c2tests.ec2.extnetworks.ExtNetworks)
    first : int
    0
    second : int
    3
    msg : str
    0 != 3
    1. def _baseAssertEqual(self, first, second, msg=None):
    2. """The default assertEqual implementation, not type specific."""
    3. if not first == second:
    4. standardMsg = '%s != %s' % _common_shorten_repr(first, second)
    5. msg = self._formatMessage(msg, standardMsg)
    6. raise self.failureException(msg)
    7. def assertEqual(self, first, second, msg=None):
    8. """Fail if the two objects are unequal as determined by the '=='
    9. operator.

    Locals

    standardMsg : str
    0 != 3

    Globals

    __unittest : bool
    True
    _subtest_msg_sentinel : object
    <object object at 0x7fb0513c8fd0>
    DIFF_OMITTED : str
    Diff is %s characters long. Set self.maxDiff to None to see it.

Environment

Time of report generation
2024-04-19 01:08:47
Python version
3.7.9 (default, Sep 21 2022, 19:11:27) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Path to executable
/root/c2tests/.venv/bin/python
Working directory
/root/c2tests
Arguments vector
  1. /root/c2tests/.venv/bin/c2tests
  2. run
  3. -s
  4. ec2