def test_superseded(self):
    lic1 = LicenseFactory()
    lic2 = LicenseFactory(is_replaced_by=lic1)
    self.assertTrue(lic2.superseded)
    self.assertFalse(lic1.superseded)
def test_superseded(self):
    lic1 = LicenseFactory()
    lic2 = LicenseFactory(is_replaced_by=lic1)
    self.assertTrue(lic2.superseded)
    self.assertFalse(lic1.superseded)