def test_nc(self):
    self.assertFalse(LicenseFactory(license_code='xyz').nc)
    self.assertTrue(LicenseFactory(license_code='by-nc-xyz').nc)
def test_nc(self):
    self.assertFalse(LicenseFactory(license_code='xyz').nc)
    self.assertTrue(LicenseFactory(license_code='by-nc-xyz').nc)