Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64802e1

Browse files
authored
test: use not instead of is False in assert (googleapis#366)
* test: use == instead of is when comparing equality * use not instead of ==
1 parent 022add1 commit 64802e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_extended_operation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def make_extended_operation(responses=None):
7070
def test_constructor():
7171
ex_op, refresh, _ = make_extended_operation()
7272
assert ex_op._extended_operation == refresh.responses[0]
73-
assert ex_op.cancelled() is False
74-
assert ex_op.done() is False
73+
assert not ex_op.cancelled()
74+
assert not ex_op.done()
7575
assert ex_op.name == TEST_OPERATION_NAME
7676
assert ex_op.status == CustomOperation.StatusCode.PENDING
7777
assert ex_op.error_code is None

0 commit comments

Comments
 (0)