Permalink
Browse files

Fixed old tests

  • Loading branch information...
1 parent 9356539 commit 5b5b79f5c4d91319c46feb15007495d89fecf1cd Valtteri Virtanen committed Mar 5, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 test/test_flow.py
View
@@ -87,7 +87,7 @@ def test_tick(self):
class uServerPlaybackState(libpry.AutoTree):
def test_hash(self):
- s = flow.ServerPlaybackState(None, [], False)
+ s = flow.ServerPlaybackState(None, [], False, False)
r = tutils.tflow()
r2 = tutils.tflow()
@@ -99,7 +99,7 @@ def test_hash(self):
assert s._hash(r) != s._hash(r2)
def test_headers(self):
- s = flow.ServerPlaybackState(["foo"], [], False)
+ s = flow.ServerPlaybackState(["foo"], [], False, False)
r = tutils.tflow_full()
r.request.headers["foo"] = ["bar"]
r2 = tutils.tflow_full()
@@ -120,7 +120,7 @@ def test_load(self):
r2 = tutils.tflow_full()
r2.request.headers["key"] = ["two"]
- s = flow.ServerPlaybackState(None, [r, r2], False)
+ s = flow.ServerPlaybackState(None, [r, r2], False, False)
assert s.count() == 2
assert len(s.fmap.keys()) == 1
@@ -547,7 +547,7 @@ def test_client_playback(self):
f = tutils.tflow_full()
pb = [tutils.tflow_full(), f]
fm = flow.FlowMaster(None, s)
- assert not fm.start_server_playback(pb, False, [], False)
+ assert not fm.start_server_playback(pb, False, [], False, False)
assert not fm.start_client_playback(pb, False)
q = Queue.Queue()
@@ -568,10 +568,10 @@ def test_server_playback(self):
fm.refresh_server_playback = True
assert not fm.do_server_playback(tutils.tflow())
- fm.start_server_playback(pb, False, [], False)
+ fm.start_server_playback(pb, False, [], False, False)
assert fm.do_server_playback(tutils.tflow())
- fm.start_server_playback(pb, False, [], True)
+ fm.start_server_playback(pb, False, [], True, False)
r = tutils.tflow()
r.request.content = "gibble"
assert not fm.do_server_playback(r)

0 comments on commit 5b5b79f

Please sign in to comment.