def test_resource_slug(self):
    license = LicenseFactory(license_code='qwerty', version='2.7', jurisdiction_code='zys')
    self.assertEqual('qwerty_27_zys', license.resource_slug)
    license = LicenseFactory(license_code='qwerty', version='2.7', jurisdiction_code='')
    self.assertEqual('qwerty_27', license.resource_slug)
def test_resource_slug(self):
    license = LicenseFactory(license_code='qwerty', version='2.7', jurisdiction_code='zys')
    self.assertEqual('qwerty_27_zys', license.resource_slug)
    license = LicenseFactory(license_code='qwerty', version='2.7', jurisdiction_code=)
    self.assertEqual('qwerty_27', license.resource_slug)