from models.natural import *
from models.nutrient import *

def testSoilAmendment():
	nut=NutrientProfile()
	nut.nitrogen=12.0
	nut.put()

	soil=Soil()
	soil.nutrientProfile=nut
	soil.put()

	nut2=NutrientProfile()
	nut2.nitrogen=3.0
	nut2.put()

	am=Amendment()
	am.nutrientProfile=nut2
	am.put()
	
	soil.addAmendment(am)
	soil.put()

	assert(soil.nutrientProfile.nitrogen==15.0)

4af8ee9fc62868586d481d135ea31dc265fea090
<mask token>

<mask token>


def testSoilAmendment():
    nut = NutrientProfile()
    nut.nitrogen = 12.0
    nut.put()
    soil = Soil()
    soil.nutrientProfile = nut
    soil.put()
    nut2 = NutrientProfile()
    nut2.nitrogen = 3.0
    nut2.put()
    am = Amendment()
    am.nutrientProfile = nut2
    am.put()
    soil.addAmendment(am)
    soil.put()
    assert soil.nutrientProfile.nitrogen == 15.0

from models.natural import *
from models.nutrient import *


def testSoilAmendment():
    nut = NutrientProfile()
    nut.nitrogen = 12.0
    nut.put()
    soil = Soil()
    soil.nutrientProfile = nut
    soil.put()
    nut2 = NutrientProfile()
    nut2.nitrogen = 3.0
    nut2.put()
    am = Amendment()
    am.nutrientProfile = nut2
    am.put()
    soil.addAmendment(am)
    soil.put()
    assert soil.nutrientProfile.nitrogen == 15.0

from models.natural import *
from models.nutrient import *

def testSoilAmendment():
	nut=NutrientProfile()
	nut.nitrogen=12.0
	nut.put()

	soil=Soil()
	soil.nutrientProfile=nut
	soil.put()

	nut2=NutrientProfile()
	nut2.nitrogen=3.0
	nut2.put()

	am=Amendment()
	am.nutrientProfile=nut2
	am.put()
	
	soil.addAmendment(am)
	soil.put()

	assert(soil.nutrientProfile.nitrogen==15.0)
