def test_has_english(self):
    license = LicenseFactory()
    lc_fr = LegalCodeFactory(license=license, language_code='fr')
    self.assertFalse(lc_fr.has_english())
    lc_en = LegalCodeFactory(license=license, language_code='en')
    self.assertTrue(lc_fr.has_english())
    self.assertTrue(lc_en.has_english())
def test_has_english(self):
    license = LicenseFactory()
    lc_fr = LegalCodeFactory(license=license, language_code='fr')
    self.assertFalse(lc_fr.has_english())
    lc_en = LegalCodeFactory(license=license, language_code='en')
    self.assertTrue(lc_fr.has_english())
    self.assertTrue(lc_en.has_english())