def test_branch_name(self):
    legalcode = LegalCodeFactory(license__version='4.0', license__license_code='by-sa', language_code='de')
    self.assertEqual('cc4-de', legalcode.branch_name())
    legalcode = LegalCodeFactory(license__version='3.5', license__license_code='other', language_code='de')
    self.assertEqual('other-35-de', legalcode.branch_name())
    legalcode = LegalCodeFactory(license__version='3.5', license__license_code='other', language_code='de', license__jurisdiction_code='xyz')
    self.assertEqual('other-35-de-xyz', legalcode.branch_name())
def test_branch_name(self):
    legalcode = LegalCodeFactory(license__version='4.0', license__license_code='by-sa', language_code='de')
    self.assertEqual('cc4-de', legalcode.branch_name())
    legalcode = LegalCodeFactory(license__version='3.5', license__license_code='other', language_code='de')
    self.assertEqual('other-35-de', legalcode.branch_name())
    legalcode = LegalCodeFactory(license__version='3.5', license__license_code='other', language_code='de', license__jurisdiction_code='xyz')
    self.assertEqual('other-35-de-xyz', legalcode.branch_name())