Green Button Tests Package¶
Submodules¶
XML Importer Tests¶
Bases:
django.test.testcases.TestCase
Tests of various ways of authenticating to the API.
Uses the get_building endpoint in all cases.
Tests that appropriate models for the sample xml file have been created.
Test of xml_importer.create_models.
Test of xml_importer.import_xml.
Bases:
django.test.testcases.TestCase
Tests helper functions for pulling green button building data out of xml snippets.
Takes a function fn and a mapping from input values to expected output values. Asserts that fn returns the expected output for each of the input values.
Test of xml_importer.as_collection.
Test of xml_importer.building_data.
Test of xml_importer.energy_type.
Test of function that converts a green button ‘uom’ (unit of measurement?) integer to one of seed.models.ENERGY_UNITS.
Test of xml_importer.interval_block_data.
Test of xml_importer.interval_data.
Test of xml_importer.meter_data.