Skip to content

Commit

Permalink
another wrong test for equality
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Mar 18, 2015
1 parent 15b46a4 commit 1d20a25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import pytest
import hypothesis.settings as hs
from hypothesis import given
from hypothesis import given, strategy
from hypothesis.database import ExampleDatabase
from tests.common.descriptors import DescriptorWithValue
from hypothesis.internal.compat import text_type, integer_types
Expand All @@ -41,7 +41,9 @@ def run_round_trip(descriptor, value, format=None, backend=None):
storage = db.storage_for(descriptor)
storage.save(value)
saved = list(storage.fetch())
assert repr(saved) == repr([value])
assert len(saved) == 1
strat = strategy(descriptor)
assert strat.to_basic(saved[0]) == strat.to_basic(value)


class InMemoryBackend(Backend):
Expand Down

0 comments on commit 1d20a25

Please sign in to comment.