def assert_sr_flip_flop(self, signal_s, signal_r, expected_q):
    (_, _, q, not_q, simulation) = sr_simulation(signal_s, signal_r)
    simulation.run()
    self.assertEqual(expected_q, q.value)
    self.assertEqual((not expected_q), not_q.value)
def assert_sr_flip_flop(self, signal_s, signal_r, expected_q):
    (_, _, q, not_q, simulation) = sr_simulation(signal_s, signal_r)
    simulation.run()
    self.assertEqual(expected_q, q.value)
    self.assertEqual((not expected_q), not_q.value)