diff options
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r-- | yarns/900-implements.yarn | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index d63472c..97f7689 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -160,6 +160,14 @@ This chapter shows the scenario step implementations. params = urlparse.parse_qs(parts.query) V[var2] = params['code'][0] + IMPLEMENTS THEN state from (\S+) is (\S+) + import urlparse + var1 = get_next_match() + var2 = get_next_match() + parts = urlparse.urlparse(V[var1]) + params = urlparse.parse_qs(parts.query) + assertEqual(params['state'][0], var2) + IMPLEMENTS THEN remember HTTP (\S+) header as (.+) header = get_next_match() name = get_next_match() @@ -291,5 +299,3 @@ This chapter shows the scenario step implementations. assertTrue(tf is not None) assertTrue(isinstance(tf, str)) assertTrue(tf != "") - - |