def test_update(self): m = Model(3500, 100) do = DefaultOutput() m.registerOutput(do) m.start() self.assertEqual(3500, do.lastFreq)
def normalRun(step,freq,input,output,verbose): model = Model(freq, step) inputMethod, outputMethod = None, None if input=='cli': inputMethod = CliInput(model) if output=='cli': outputMethod = CliOutput() model.registerOutput(outputMethod) model.start() inputMethod.start()
def test_something(self): m = Model(3500, 100) c = CliOutput() m.registerOutput(c) m.start() self.assertEqual(True, True)