예제 #1
0
 def test_release_notes_template(self):
     eq_(views.release_notes_template('', 'Firefox OS'),
         'firefox/releases/os-notes.html')
     eq_(views.release_notes_template('Nightly', 'Firefox'),
         'firefox/releases/nightly-notes.html')
     eq_(views.release_notes_template('Aurora', 'Firefox'),
         'firefox/releases/aurora-notes.html')
     eq_(views.release_notes_template('Beta', 'Firefox'),
         'firefox/releases/beta-notes.html')
     eq_(views.release_notes_template('Release', 'Firefox'),
         'firefox/releases/release-notes.html')
     eq_(views.release_notes_template('ESR', 'Firefox'),
         'firefox/releases/esr-notes.html')
     eq_(views.release_notes_template('', ''),
         'firefox/releases/release-notes.html')
예제 #2
0
 def test_release_notes_template(self):
     """
     Should return correct template name based on channel
     and product
     """
     eq_(views.release_notes_template('', 'Firefox OS'),
         'firefox/releases/os-notes.html')
     eq_(views.release_notes_template('Nightly', 'Firefox'),
         'firefox/releases/nightly-notes.html')
     eq_(views.release_notes_template('Aurora', 'Firefox'),
         'firefox/releases/aurora-notes.html')
     eq_(views.release_notes_template('Aurora', 'Firefox', 35),
         'firefox/releases/dev-browser-notes.html')
     eq_(views.release_notes_template('Aurora', 'Firefox', 34),
         'firefox/releases/aurora-notes.html')
     eq_(views.release_notes_template('Beta', 'Firefox'),
         'firefox/releases/beta-notes.html')
     eq_(views.release_notes_template('Release', 'Firefox'),
         'firefox/releases/release-notes.html')
     eq_(views.release_notes_template('ESR', 'Firefox'),
         'firefox/releases/esr-notes.html')
     eq_(views.release_notes_template('', ''),
         'firefox/releases/release-notes.html')
예제 #3
0
 def test_release_notes_template(self):
     """
     Should return correct template name based on channel
     and product
     """
     eq_(views.release_notes_template('', 'Firefox OS'),
         'firefox/releases/os-notes.html')
     eq_(views.release_notes_template('Nightly', 'Firefox'),
         'firefox/releases/nightly-notes.html')
     eq_(views.release_notes_template('Aurora', 'Firefox'),
         'firefox/releases/aurora-notes.html')
     eq_(views.release_notes_template('Beta', 'Firefox'),
         'firefox/releases/beta-notes.html')
     eq_(views.release_notes_template('Release', 'Firefox'),
         'firefox/releases/release-notes.html')
     eq_(views.release_notes_template('ESR', 'Firefox'),
         'firefox/releases/esr-notes.html')
     eq_(views.release_notes_template('', ''),
         'firefox/releases/release-notes.html')