def test_contains_security_true(self): ac: AssetClass = AssetClass("ac", target_percentage=1.0) ac.add_security(Security("sec", "SEC")) self.assertTrue(ac.contains_security("sec"))
def test_contains_security_false(self): ac: AssetClass = AssetClass("ac", target_percentage=1.0) self.assertFalse(ac.contains_security("sec"))