File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ def setUp(self):
13
13
clever .set_api_key ('DEMO_KEY' )
14
14
15
15
class CertPinning (CleverTestCase ):
16
-
17
16
def test_prod_api (self ):
18
17
clever .api_base = 'https://api.clever.com'
19
18
district = clever .District .all ()[0 ]
@@ -25,14 +24,10 @@ def test_staging_api(self):
25
24
self .assertEqual (district .name , 'Demo District' )
26
25
27
26
def test_cert_failure (self ):
28
- try :
29
- clever .api_base = 'https://httpbin.org'
30
- self .assertRaises (clever .APIConnectionError , clever .District .all ())
31
- finally :
32
- print 'a'
33
-
27
+ clever .api_base = 'https://httpbin.org'
28
+ self .assertRaises (clever .APIConnectionError , clever .District .all )
34
29
35
30
if __name__ == '__main__' :
36
31
suite = unittest .TestSuite ()
37
32
suite .addTest (unittest .TestLoader ().loadTestsFromTestCase (CertPinning ))
38
- unittest .TextTestRunner (verbosity = 3 ).run (suite )
33
+ unittest .TextTestRunner (verbosity = 2 ).run (suite )
You can’t perform that action at this time.
0 commit comments