コード例 #1
0
def test_cat_factory_food(dog_factory: PetFactory) -> None:
    assert isinstance(dog_factory.food(), DogFood)
コード例 #2
0
def test_cat_factory_pet(dog_factory: PetFactory) -> None:
    assert isinstance(dog_factory.pet(), Dog)