Skip to content

Commit

Permalink
Update name in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Jul 3, 2019
1 parent b7a1498 commit 8ef6ef8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hypothesis-python/tests/cover/test_conjecture_junkdrawer.py
Expand Up @@ -19,11 +19,11 @@

import pytest

from hypothesis.internal.conjecture.junkdrawer import MutableProxy
from hypothesis.internal.conjecture.junkdrawer import LazySequenceCopy


def test_out_of_range():
x = MutableProxy([1, 2, 3])
x = LazySequenceCopy([1, 2, 3])

with pytest.raises(IndexError):
x[3]
Expand All @@ -33,22 +33,22 @@ def test_out_of_range():


def test_pass_through():
x = MutableProxy([1, 2, 3])
x = LazySequenceCopy([1, 2, 3])
assert x[0] == 1
assert x[1] == 2
assert x[2] == 3


def test_can_assign_without_changing_underlying():
underlying = [1, 2, 3]
x = MutableProxy(underlying)
x = LazySequenceCopy(underlying)
x[1] = 10
assert x[1] == 10
assert underlying[1] == 2


def test_pop():
x = MutableProxy([2, 3])
x = LazySequenceCopy([2, 3])
assert x.pop() == 3
assert x.pop() == 2

Expand Down

0 comments on commit 8ef6ef8

Please sign in to comment.