Ejemplo n.º 1
0
def test_repr(energy_trace_set, interventions, site):
    project = Project(energy_trace_set, interventions, site)

    assert str(project).startswith("Project")
    assert "energy_trace_set=EnergyTraceSet" in str(project)
    assert "interventions=[]" in str(project)
    assert 'site=ZIPCodeSite("11111")' in str(project)
def project(energy_trace_set, interventions):
    site = ZIPCodeSite("02138")
    project = Project(energy_trace_set, interventions, site)
    return project
Ejemplo n.º 3
0
def project_bad_zip():
    ets = EnergyTraceSet({})
    interventions = []
    site = ZIPCodeSite("00000")
    project = Project(ets, interventions, site)
    return project
Ejemplo n.º 4
0
def project():
    ets = EnergyTraceSet({})
    interventions = []
    site = ZIPCodeSite("91104")
    project = Project(ets, interventions, site)
    return project
Ejemplo n.º 5
0
def test_create(energy_trace_set, interventions, site):
    project = Project(energy_trace_set, interventions, site)
    assert project.energy_trace_set == energy_trace_set
    assert project.interventions == interventions
    assert project.site == site