Project

General

Profile

Actions

Bug #9417

closed

Some tests use assertTrue for value comparison

Added by Lucas Di Pentima over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Tests
Target version:
Story points:
-

Description

Found that the tests at the RetryNeedsMultipleServices test case on file test_keep_client.py are using assertTrue to compare values instead of assertEqual. For example:

    def test_success_after_exception(self):
        with tutil.mock_keep_responses(
                'acbd18db4cc2f85cedef654fccc4a4d8+3',
                Exception('mock err'), 200, 200) as req_mock:
            self.keep_client.put('foo', num_retries=1, copies=2)
        self.assertTrue(3, req_mock.call_count)

Subtasks 1 (0 open1 closed)

Task #9418: Review 9417-asserttrue-for-value-comparisonResolvedBrett Smith06/15/2016Actions
Actions

Also available in: Atom PDF