'Verify product-specific ready for l10n notifications.'

def test_product_specific_ready(self):

    ReadyRevisionEvent.notify(UserFactory(), product='firefox-os')
    doc = DocumentFactory()
    doc.products.add(ProductFactory(slug='firefox'))
    self._mark_as_ready_revision(doc=doc)
    eq_(1, len(mail.outbox))
    _assert_ready_mail(mail.outbox[0])
    doc.products.add(ProductFactory(slug='firefox-os'))
    self._mark_as_ready_revision(doc=doc)
    eq_(3, len(mail.outbox))
    _assert_ready_mail(mail.outbox[1])
    _assert_ready_mail(mail.outbox[2])
    ReadyRevisionEvent.notify(UserFactory(), product='firefox')
    self._mark_as_ready_revision(doc=doc)
    eq_(6, len(mail.outbox))
