Пример #1
0
 def testBadSS2(self):
     self.got_signal = False
     def handle_signal(sender, **kargs):
         self.got_signal = True
         self.signal_obj = sender
     payment_was_flagged.connect(handle_signal)
     query2 = query.replace('FxVM5X7j2mg9w', 'FxVM5X7j2mg9w'.swapcase())
     resp = self.client.get("?" + query2)
     self.assertTrue(self.got_signal)
Пример #2
0
 def testBadSS1(self):
     self.got_signal = False
     def handle_signal(sender, **kargs):
         self.got_signal = True
         self.signal_obj = sender
     payment_was_flagged.connect(handle_signal)
     query2 = query.replace("c72cffd0345f55fef6595a86e5c7caa6", "bad")
     resp = self.client.get("?" + query2)
     self.assertTrue(self.got_signal)
Пример #3
0
    def testBadSS2(self):
        self.got_signal = False

        def handle_signal(sender, **kargs):
            self.got_signal = True
            self.signal_obj = sender

        payment_was_flagged.connect(handle_signal)
        query2 = query.replace('FxVM5X7j2mg9w', 'FxVM5X7j2mg9w'.swapcase())
        resp = self.client.get("?" + query2)
        self.assertTrue(self.got_signal)
Пример #4
0
    def testBadSS1(self):
        self.got_signal = False

        def handle_signal(sender, **kargs):
            self.got_signal = True
            self.signal_obj = sender

        payment_was_flagged.connect(handle_signal)
        query2 = query.replace("c72cffd0345f55fef6595a86e5c7caa6", "bad")
        resp = self.client.get("?" + query2)
        self.assertTrue(self.got_signal)