Skip to content

Commit dfd3b60

Browse files
committed
Removed tests for the confirm_acronym field removed in [16412].
- Legacy-Id: 16413 Note: SVN reference [16412] has been migrated to Git commit 1997a90
1 parent 1997a90 commit dfd3b60

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

ietf/group/tests_info.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,6 @@ def test_create_based_on_existing_bof(self):
527527
self.assertEqual(r.status_code, 200)
528528
q = PyQuery(r.content)
529529
self.assertTrue(len(q('form .has-error')) > 0)
530-
self.assertEqual(len(q('form input[name="confirm_acronym"]')), 0) # can't confirm us out of this
531530

532531
# try elevating BoF to WG
533532
group.state_id = "bof"
@@ -537,16 +536,15 @@ def test_create_based_on_existing_bof(self):
537536
self.assertEqual(r.status_code, 200)
538537
q = PyQuery(r.content)
539538
self.assertTrue(len(q('form .has-error')) > 0)
540-
self.assertEqual(len(q('form input[name="confirm_acronym"]')), 1)
541539

542540
self.assertEqual(Group.objects.get(acronym=group.acronym).state_id, "bof")
543541

544-
# confirm elevation
545-
state = GroupStateName.objects.get(slug="proposed")
546-
r = self.client.post(url, dict(name="Test", acronym=group.acronym, confirm_acronym="1", state=state.pk))
547-
self.assertEqual(r.status_code, 302)
548-
self.assertEqual(Group.objects.get(acronym=group.acronym).state_id, "proposed")
549-
self.assertEqual(Group.objects.get(acronym=group.acronym).name, "Test")
542+
# # confirm elevation
543+
# state = GroupStateName.objects.get(slug="proposed")
544+
# r = self.client.post(url, dict(name="Test", acronym=group.acronym, confirm_acronym="1", state=state.pk))
545+
# self.assertEqual(r.status_code, 302)
546+
# self.assertEqual(Group.objects.get(acronym=group.acronym).state_id, "proposed")
547+
# self.assertEqual(Group.objects.get(acronym=group.acronym).name, "Test")
550548

551549
def test_edit_info(self):
552550
group = GroupFactory(acronym='mars',parent=GroupFactory(type_id='area'))
@@ -1108,7 +1106,7 @@ def setUp(self):
11081106
GroupFactory(acronym='mars',parent=GroupFactory(type_id='area'))
11091107
GroupFactory(acronym='ames',parent=GroupFactory(type_id='area'))
11101108
self.group_alias_file = NamedTemporaryFile(delete=False)
1111-
self.group_alias_file.write("""# Generated by hand at 2015-02-12_16:30:52
1109+
self.group_alias_file.write(b"""# Generated by hand at 2015-02-12_16:30:52
11121110
virtual.ietf.org anything
11131111
mars-ads@ietf.org xfilter-mars-ads
11141112
expand-mars-ads@virtual.ietf.org aread@example.org
@@ -1267,7 +1265,7 @@ def test_view_status_update(self):
12671265
response = self.client.get(url)
12681266
self.assertEqual(response.status_code,200)
12691267
q=PyQuery(response.content)
1270-
self.assertTrue(bleach.linkify(escape(event.desc)) in six.text_type(q('pre')))
1268+
self.assertTrue(bleach.linkify(escape(event.desc)) in str(q('pre')))
12711269
self.assertFalse(q('a#edit_button'))
12721270
self.client.login(username=chair.person.user.username,password='%s+password'%chair.person.user.username)
12731271
response = self.client.get(url)

0 commit comments

Comments
 (0)