|
1 | 1 | from ietf.doc.factories import WgDraftFactory |
2 | | -from ietf.doc.templatetags.ballot_icon import state_alert_badge |
| 2 | +from ietf.doc.templatetags.ballot_icon import auth48_alert_badge |
3 | 3 | from ietf.utils.test_utils import TestCase |
4 | 4 |
|
5 | 5 |
|
6 | 6 | class BallotIconTests(TestCase): |
7 | | - def test_state_alert_badge_marks_auth48(self): |
| 7 | + def test_auth48_alert_badge_marks_auth48(self): |
8 | 8 | draft = WgDraftFactory(states=[ |
9 | 9 | ('draft','active'), |
10 | 10 | ('draft-iesg','rfcqueue'), |
11 | 11 | ('draft-rfceditor', 'auth48'), |
12 | 12 | ]) |
13 | | - output = state_alert_badge(draft) |
| 13 | + output = auth48_alert_badge(draft) |
14 | 14 | self.assertIn('AUTH48', output) |
15 | 15 |
|
16 | | - def test_state_alert_badge_ignores_others(self): |
17 | | - # If the state_alert_badge() method becomes more complicated, more |
| 16 | + def test_auth48_alert_badge_ignores_others(self): |
| 17 | + # If the auth48_alert_badge() method becomes more complicated, more |
18 | 18 | # sophisticated testing can be added. |
19 | 19 | # For now, just test a couple states that should not be marked. |
20 | 20 | draft = WgDraftFactory(states=[ |
21 | 21 | ('draft', 'active'), |
22 | 22 | ('draft-iesg', 'approved'), # not in rfcqueue state |
23 | 23 | ('draft-rfceditor', 'auth48'), |
24 | 24 | ]) |
25 | | - output = state_alert_badge(draft) |
| 25 | + output = auth48_alert_badge(draft) |
26 | 26 | self.assertEqual('', output) |
27 | 27 |
|
28 | 28 | draft = WgDraftFactory(states=[ |
29 | 29 | ('draft', 'active'), |
30 | 30 | ('draft-iesg', 'rfcqueue'), |
31 | 31 | ('draft-rfceditor', 'auth48-done'), # not in auth48 state |
32 | 32 | ]) |
33 | | - output = state_alert_badge(draft) |
| 33 | + output = auth48_alert_badge(draft) |
34 | 34 | self.assertEqual('', output) |
0 commit comments