Example #1
0
 def setUp(self):
     self.wl = coal.Coal(brokers=['127.0.0.1'],
                         consumer_group='coal_test',
                         schemas=['NavigationTiming', 'SaveTiming'],
                         graphite_host='localhost',
                         graphite_port=2003,
                         graphite_prefix='test',
                         dry_run=True,
                         verbose=True)
def test_add_coal():
    c = coal.CoalPowerPlant(100.0, coal.Coal(30.0), 0.5)
    c.add_fuel(coal.Coal(21.0))