def test_translation_domain(self):
    data = [('by-sa_30', 'by-sa', '3.0', '', 'fr'), ('by-sa_30_xx', 'by-sa', '3.0', 'xx', 'fr')]
    for (expected, license_code, version, jurisdiction, language) in data:
        with self.subTest(expected):
            legalcode = LegalCodeFactory(license__license_code=license_code, license__version=version, license__jurisdiction_code=jurisdiction, language_code=language)
            self.assertEqual(expected, legalcode.translation_domain)
def test_translation_domain(self):
    data = [('by-sa_30', 'by-sa', '3.0', , 'fr'), ('by-sa_30_xx', 'by-sa', '3.0', 'xx', 'fr')]
    for (expected, license_code, version, jurisdiction, language) in data:
        with self.subTest(expected):
            legalcode = LegalCodeFactory(license__license_code=license_code, license__version=version, license__jurisdiction_code=jurisdiction, language_code=language)
            self.assertEqual(expected, legalcode.translation_domain)