Beispiel #1
0
    def test_get_grain_add_cereal_weight_dme(self):
        pale_dme = GrainAddition(pale,
                                 weight=8.38,
                                 grain_type=GRAIN_TYPE_DME,
                                 units=IMPERIAL_UNITS)
        recipe = Recipe(u'dme',
                        grain_additions=[pale_dme],
                        hop_additions=self.hop_additions,
                        yeast=self.yeast,
                        units=IMPERIAL_UNITS)

        out = recipe.get_grain_add_cereal_weight(pale_dme)
        self.assertEquals(round(out, 2), 19.95)
Beispiel #2
0
    def test_get_grain_add_cereal_weight_lme(self):
        pale_lme = GrainAddition(pale,
                                 weight=4.75,
                                 grain_type=GRAIN_TYPE_LME,
                                 units=SI_UNITS)
        recipe = Recipe(u'lme',
                        grain_additions=[pale_lme],
                        hop_additions=self.hop_additions,
                        yeast=self.yeast,
                        units=SI_UNITS)

        out = recipe.get_grain_add_cereal_weight(pale_lme)
        self.assertEquals(round(out, 2), 9.05)
    def test_get_grain_add_cereal_weight_dme(self):
        pale_dme_add = GrainAddition(pale_dme,
                                     weight=5.33,
                                     grain_type=GRAIN_TYPE_DME,
                                     units=SI_UNITS)
        recipe = Recipe(u'dme',
                        grain_additions=[pale_dme_add],
                        hop_additions=self.hop_additions,
                        yeast=self.yeast,
                        units=SI_UNITS)

        out = recipe.get_grain_add_cereal_weight(pale_dme_add,
                                                 ppg=ppg_pale)
        self.assertEquals(round(out, 2), 6.34)
    def test_get_grain_add_cereal_weight_lme(self):
        pale_lme_add = GrainAddition(pale_lme,
                                     weight=14.35,
                                     grain_type=GRAIN_TYPE_LME,
                                     units=IMPERIAL_UNITS)
        recipe = Recipe(u'lme',
                        grain_additions=[pale_lme_add],
                        hop_additions=self.hop_additions,
                        yeast=self.yeast,
                        units=IMPERIAL_UNITS)

        out = recipe.get_grain_add_cereal_weight(pale_lme_add,
                                                 ppg=ppg_pale)
        self.assertEquals(round(out, 2), 13.96)
Beispiel #5
0
    def test_get_grain_add_cereal_weight_dme(self):
        pale_dme_add = GrainAddition(pale_dme,
                                     weight=11.74,
                                     grain_type=GRAIN_TYPE_DME,
                                     units=IMPERIAL_UNITS)
        recipe = Recipe(
            u"dme",
            grain_additions=[pale_dme_add],
            hop_additions=self.hop_additions,
            yeast=self.yeast,
            units=IMPERIAL_UNITS,
        )

        out = recipe.get_grain_add_cereal_weight(pale_dme_add, ppg=ppg_pale)
        self.assertEquals(round(out, 2), 13.96)