From 233aef46d53bfabf2809ecf01798e9f6bce09339 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sun, 22 Apr 2012 16:33:44 +0000 Subject: [PATCH] Comment out NewIprTestCase as it writes to the production database. - Legacy-Id: 4301 --- ietf/ipr/tests.py | 68 +++++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/ietf/ipr/tests.py b/ietf/ipr/tests.py index 029ac4b35..baeb70492 100644 --- a/ietf/ipr/tests.py +++ b/ietf/ipr/tests.py @@ -50,40 +50,40 @@ class IprUrlTestCase(SimpleUrlTestCase): # this test should be ported to run on a test database instead of the # real database, and possibly expanded -class NewIprTestCase(unittest.TestCase,RealDatabaseTest): - SPECIFIC_DISCLOSURE = { - 'legal_name':'Testing Only Please Ignore', - 'hold_name':'Test Holder', - 'hold_telephone':'555-555-0100', - 'hold_email':'test.holder@example.com', - 'ietf_name':'Test Participant', - 'ietf_telephone':'555-555-0101', - 'ietf_email':'test.participant@example.com', - 'rfclist':'1149', - 'draftlist':'draft-burdis-http-sasl-00', - 'patents':'none', - 'date_applied':'never', - 'country':'nowhere', - 'licensing_option':'5', - 'subm_name':'Test Submitter', - 'subm_telephone':'555-555-0102', - 'subm_email':'test.submitter@example.com' - } - - def setUp(self): - self.setUpRealDatabase() - def tearDown(self): - self.tearDownRealDatabase() - - def testNewSpecific(self): - print " Testing IPR disclosure submission" - empty_outbox() - c = Client() - response = c.post('/ipr/new-specific/', self.SPECIFIC_DISCLOSURE) - self.assertEquals(response.status_code, 200) - self.assert_("Your IPR disclosure has been submitted" in response.content) - self.assertEquals(len(outbox), 1) - print "OK (1 email found in test outbox)" +# class NewIprTestCase(unittest.TestCase,RealDatabaseTest): +# SPECIFIC_DISCLOSURE = { +# 'legal_name':'Testing Only Please Ignore', +# 'hold_name':'Test Holder', +# 'hold_telephone':'555-555-0100', +# 'hold_email':'test.holder@example.com', +# 'ietf_name':'Test Participant', +# 'ietf_telephone':'555-555-0101', +# 'ietf_email':'test.participant@example.com', +# 'rfclist':'1149', +# 'draftlist':'draft-burdis-http-sasl-00', +# 'patents':'none', +# 'date_applied':'never', +# 'country':'nowhere', +# 'licensing_option':'5', +# 'subm_name':'Test Submitter', +# 'subm_telephone':'555-555-0102', +# 'subm_email':'test.submitter@example.com' +# } +# +# def setUp(self): +# self.setUpRealDatabase() +# def tearDown(self): +# self.tearDownRealDatabase() +# +# def testNewSpecific(self): +# print " Testing IPR disclosure submission" +# empty_outbox() +# c = Client() +# response = c.post('/ipr/new-specific/', self.SPECIFIC_DISCLOSURE) +# self.assertEquals(response.status_code, 200) +# self.assert_("Your IPR disclosure has been submitted" in response.content) +# self.assertEquals(len(outbox), 1) +# print "OK (1 email found in test outbox)" class IprFileTestCase(unittest.TestCase):