Skip to content

Commit 44dbd9c

Browse files
author
Christopher Bradshaw
committed
cleanup
1 parent 675209f commit 44dbd9c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/test_cert_pinning.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def setUp(self):
1313
clever.set_api_key('DEMO_KEY')
1414

1515
class CertPinning(CleverTestCase):
16-
1716
def test_prod_api(self):
1817
clever.api_base = 'https://api.clever.com'
1918
district = clever.District.all()[0]
@@ -25,14 +24,10 @@ def test_staging_api(self):
2524
self.assertEqual(district.name, 'Demo District')
2625

2726
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)
3429

3530
if __name__ == '__main__':
3631
suite = unittest.TestSuite()
3732
suite.addTest(unittest.TestLoader().loadTestsFromTestCase(CertPinning))
38-
unittest.TextTestRunner(verbosity=3).run(suite)
33+
unittest.TextTestRunner(verbosity=2).run(suite)

0 commit comments

Comments
 (0)