Ejemplo n.º 1
0
    def test_get_grain_add_dry_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_dry_weight(pale_dme_add)
        self.assertEquals(round(out, 2), 5.33)
Ejemplo n.º 2
0
    def test_get_grain_add_dry_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_dry_weight(pale_dme)
        self.assertEquals(round(out, 2), 8.38)
    def test_get_grain_add_dry_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_dry_weight(pale_lme_add)
        self.assertEquals(round(out, 2), 11.74)
Ejemplo n.º 4
0
    def test_get_grain_add_dry_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_dry_weight(pale_lme)
        self.assertEquals(round(out, 2), 3.80)
Ejemplo n.º 5
0
    def test_get_grain_add_dry_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_dry_weight(pale_dme_add)
        self.assertEquals(round(out, 2), 11.74)