コード例 #1
0
 def test_can_switch_to_paid_and_back_to_idle(self):
     frontend = Frontend(Frontend.TYPE_FRONTEND_INVISIBLE)
     frontend.start()
     frontend.show_paid()
     active_div = frontend.get_active_div()
     frontend.show_idle()
     active_div2 = frontend.get_active_div()
     frontend.shutdown()
     self.assertEqual(active_div, "#paid")
     self.assertEqual(active_div2, "#idle")
コード例 #2
0
 def test_can_show_invoice(self):
     frontend = Frontend(Frontend.TYPE_FRONTEND_INVISIBLE)
     frontend.start()
     frontend.show_invoice('bitcoin:1asdf')
     active_div = frontend.get_active_div()
     frontend.shutdown()
     self.assertEqual(active_div, "#invoice")
コード例 #3
0
 def test_can_show_status_as_paid(self):
     frontend = Frontend(Frontend.TYPE_FRONTEND_INVISIBLE)
     frontend.start()
     frontend.show_paid()
     active_div = frontend.get_active_div()
     frontend.shutdown()
     self.assertEqual(active_div, "#paid")
コード例 #4
0
 def test_can_be_started_and_stopped_and_defaults_to_idle(self):
     frontend = Frontend(Frontend.TYPE_FRONTEND_INVISIBLE)
     frontend.start()
     active_div = frontend.get_active_div()
     frontend.shutdown()
     self.assertEqual(active_div, "#idle")