def test_flip_flop_multiple_steps(self):
    (source_s, _, q, not_q, simulation) = sr_simulation(1, 0)
    simulation.run()
    source_s.switch(1)
    simulation.run()
    self.assertEqual(1, q.value)
    self.assertEqual(0, not_q.value)
def test_flip_flop_multiple_steps(self):
    (source_s, _, q, not_q, simulation) = sr_simulation(1, 0)
    simulation.run()
    source_s.switch(1)
    simulation.run()
    self.assertEqual(1, q.value)
    self.assertEqual(0, not_q.value)