def test_add_guardians(): p = Player('Tatiana', 'Jones') # Add one guardian g1 = Guardian('Mary', 'Jones') p.add_guardian(g1) # Later, add some more g2 = Guardian('Joanie', 'Johnson') g3 = Guardian('Jerry', 'Johnson') p.add_guardians([g2, g3]) assert [g1, g2, g3] == p.guardians
def test_primary_guardian(): p = Player('Tatiana', 'Jones') # Add one guardian g1 = Guardian('Mary', 'Jones') p.add_guardian(g1) # Later, add some more g2 = Guardian('Joanie', 'Johnson') g3 = Guardian('Jerry', 'Johnson') p.add_guardians((g2, g3)) assert g1 == p.primary_guardian
def test_construction(): g = Guardian('Mary', 'Jones') assert 'Mary' == g.first_name assert 'Jones' == g.last_name
def test_add_guardian(): g = Guardian('Mary', 'Jones') p = Player('Tatiana', 'Jones') p.add_guardian(g) assert [g] == p.guardians
def guardians() -> Tuple[Guardian, ...]: g1 = Guardian('Mary', 'Jones') g2 = Guardian('Joanie', 'Johnson') g3 = Guardian('Jerry', 'Johnson') return g1, g2, g3
def test_construction(): g = Guardian('Mary', 'Jones')
def test_construction(): assert Guardian()