def test_getTemplateName_propietary(self): product, user = self.make_product_user([License.OTHER_PROPRIETARY]) notification = LicenseNotification(product) self.assertEqual( 'product-license-other-proprietary.txt', notification.getTemplateName())
def test_getTemplateName_other_open_source(self): product, user = self.make_product_user([License.OTHER_OPEN_SOURCE]) notification = LicenseNotification(product) self.assertEqual( 'product-license-other-open-source.txt', notification.getTemplateName())
def test_getTemplateName_other_dont_know(self): product, user = self.make_product_user([License.DONT_KNOW]) notification = LicenseNotification(product) self.assertEqual( 'product-license-dont-know.txt', notification.getTemplateName())