def test_nd(self):
    self.assertFalse(LicenseFactory(license_code='xyz').nd)
    self.assertTrue(LicenseFactory(license_code='by-nd-xyz').nd)
def test_nd(self):
    self.assertFalse(LicenseFactory(license_code='xyz').nd)
    self.assertTrue(LicenseFactory(license_code='by-nd-xyz').nd)