def test_parse_po(self): """Should return correct messages""" msgs = po_msgs() expected = { u'templates/some_lang_files.html': self.good_messages, u'templates/firefox/fx.html': [[None, u'Find out if your device ' u'is supported »']], } self.assertDictEqual(msgs, expected)
def test_parse_po(self): """Should return correct messages""" msgs = po_msgs('messages') expected = { u'templates/some_lang_files.html': self.good_messages, u'templates/firefox/fx.html': [[None, u'Find out if your device ' u'is supported »']], u'bedrock/firefox/templates/firefox/os/notes-1.3.html': [[ u'For bug 982755', u'The WebIccManager API, which allows support for multiple sim cards, ' u'has had updates: iccChangeEvent has been added using using event ' u'generator <a href="%(url1)s">bug 814637</a>' ]], } self.assertDictEqual(msgs, expected)
def test_parse_po(self): """Should return correct messages""" msgs = po_msgs('messages') expected = { u'templates/some_lang_files.html': self.good_messages, u'templates/firefox/fx.html': [[None, u'Find out if your device ' u'is supported »']], u'bedrock/firefox/templates/firefox/os/notes-1.3.html': [[ u'For bug 982755', u'The WebIccManager API, which allows support for multiple sim cards, ' u'has had updates: iccChangeEvent has been added using using event ' u'generator <a href="%(url1)s">bug 814637</a>' ]], } self.assertDictEqual(msgs, expected)