File: remove-broken-tests.patch

package info (click to toggle)
python-oauth2client 4.1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,468 kB
  • sloc: python: 11,266; makefile: 170; sh: 51
file content (37 lines) | stat: -rw-r--r-- 1,314 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Remove broken patches
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2017-09-27

--- python-oauth2client-4.1.2.orig/tests/contrib/test_xsrfutil.py
+++ python-oauth2client-4.1.2/tests/contrib/test_xsrfutil.py
@@ -36,14 +36,6 @@ TEST_EXTRA_INFO_2 = b'more_extra_info'
 
 class Test_generate_token(unittest.TestCase):
 
-    def test_bad_positional(self):
-        # Need 2 positional arguments.
-        with self.assertRaises(TypeError):
-            xsrfutil.generate_token(None)
-        # At most 2 positional arguments.
-        with self.assertRaises(TypeError):
-            xsrfutil.generate_token(None, None, None)
-
     def test_it(self):
         digest = b'foobar'
         digester = mock.Mock()
@@ -110,14 +102,6 @@ class Test_generate_token(unittest.TestC
 
 class Test_validate_token(unittest.TestCase):
 
-    def test_bad_positional(self):
-        # Need 3 positional arguments.
-        with self.assertRaises(TypeError):
-            xsrfutil.validate_token(None, None)
-        # At most 3 positional arguments.
-        with self.assertRaises(TypeError):
-            xsrfutil.validate_token(None, None, None, None)
-
     def test_no_token(self):
         key = token = user_id = None
         self.assertFalse(xsrfutil.validate_token(key, token, user_id))