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
def project_bad_zip(): ets = EnergyTraceSet({}) interventions = [] site = ZIPCodeSite("00000") project = Project(ets, interventions, site) return project
def project(): ets = EnergyTraceSet({}) interventions = [] site = ZIPCodeSite("91104") project = Project(ets, interventions, site) return project
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