Comment out NewIprTestCase as it writes to the production database.

- Legacy-Id: 4301
This commit is contained in:
Henrik Levkowetz 2012-04-22 16:33:44 +00:00
parent 7c46b9b61b
commit 233aef46d5

View file

@ -50,40 +50,40 @@ class IprUrlTestCase(SimpleUrlTestCase):
# this test should be ported to run on a test database instead of the # this test should be ported to run on a test database instead of the
# real database, and possibly expanded # real database, and possibly expanded
class NewIprTestCase(unittest.TestCase,RealDatabaseTest): # class NewIprTestCase(unittest.TestCase,RealDatabaseTest):
SPECIFIC_DISCLOSURE = { # SPECIFIC_DISCLOSURE = {
'legal_name':'Testing Only Please Ignore', # 'legal_name':'Testing Only Please Ignore',
'hold_name':'Test Holder', # 'hold_name':'Test Holder',
'hold_telephone':'555-555-0100', # 'hold_telephone':'555-555-0100',
'hold_email':'test.holder@example.com', # 'hold_email':'test.holder@example.com',
'ietf_name':'Test Participant', # 'ietf_name':'Test Participant',
'ietf_telephone':'555-555-0101', # 'ietf_telephone':'555-555-0101',
'ietf_email':'test.participant@example.com', # 'ietf_email':'test.participant@example.com',
'rfclist':'1149', # 'rfclist':'1149',
'draftlist':'draft-burdis-http-sasl-00', # 'draftlist':'draft-burdis-http-sasl-00',
'patents':'none', # 'patents':'none',
'date_applied':'never', # 'date_applied':'never',
'country':'nowhere', # 'country':'nowhere',
'licensing_option':'5', # 'licensing_option':'5',
'subm_name':'Test Submitter', # 'subm_name':'Test Submitter',
'subm_telephone':'555-555-0102', # 'subm_telephone':'555-555-0102',
'subm_email':'test.submitter@example.com' # 'subm_email':'test.submitter@example.com'
} # }
#
def setUp(self): # def setUp(self):
self.setUpRealDatabase() # self.setUpRealDatabase()
def tearDown(self): # def tearDown(self):
self.tearDownRealDatabase() # self.tearDownRealDatabase()
#
def testNewSpecific(self): # def testNewSpecific(self):
print " Testing IPR disclosure submission" # print " Testing IPR disclosure submission"
empty_outbox() # empty_outbox()
c = Client() # c = Client()
response = c.post('/ipr/new-specific/', self.SPECIFIC_DISCLOSURE) # response = c.post('/ipr/new-specific/', self.SPECIFIC_DISCLOSURE)
self.assertEquals(response.status_code, 200) # self.assertEquals(response.status_code, 200)
self.assert_("Your IPR disclosure has been submitted" in response.content) # self.assert_("Your IPR disclosure has been submitted" in response.content)
self.assertEquals(len(outbox), 1) # self.assertEquals(len(outbox), 1)
print "OK (1 email found in test outbox)" # print "OK (1 email found in test outbox)"
class IprFileTestCase(unittest.TestCase): class IprFileTestCase(unittest.TestCase):