Beispiel #1
0
    def test_reset_rules(self):

        self.assertFalse(http_mock.get_rules())

        update_http_rules(rules)
        self.assertEqual(len(http_mock.get_rules()), 1)

        # reset
        reset_rules()
        self.assertFalse(http_mock.get_rules())
Beispiel #2
0
    def test_reset_rules(self):

        self.assertFalse(http_mock.get_rules())

        update_http_rules(rules)
        self.assertEqual(len(http_mock.get_rules()), 1)

        # reset
        reset_rules()
        self.assertFalse(http_mock.get_rules())
Beispiel #3
0
 def setUp(self):
     stop_http_mock()
     reset_rules()
     http_mock.set_allow_external(False)
Beispiel #4
0
 def setUp(self):
     stop_http_mock()
     reset_rules()
Beispiel #5
0
 def setUp(self):
     stop_http_mock()
     reset_rules()
     http_mock.set_allow_external(False)
Beispiel #6
0
 def setUp(self):
     stop_http_mock()
     reset_rules()