def test_immunity_rubella_vaccinations_raising_value_error(self, args):
     with pytest.raises(ValueError):
         immunity(**args)
 def test_immunity_birth_year_raising_error(self, args):
     with pytest.raises(ValueError):
         immunity(**args)
 def test_immunity_had_rubella(self, args, kwargs, returned_dict):
     assert immunity(*args, **kwargs) == returned_dict
 def test_immunity_post_1957(self, args, returned_dict):
     assert immunity(*args) == returned_dict
 def test_immunity_pre_1957(self, args, kwargs, returned_dict):
     assert immunity(*args, **kwargs) == returned_dict