Ejemplo n.º 1
0
    def test_ratelimiting_clear_raises_not_implmented(self):
        api = Api("AUTOMATED TESTING BY PYNATIONSTATES")

        ct = time()
        api.__rltime__ = [(ct+x) for x in range(55)]
        api.clear_ratelimit()
        self.assertEqual(len(api.__rltime__), 0)
Ejemplo n.º 2
0
 def test_ratelimiting_get(self):
     api = Api("AUTOMATED TESTING BY PYNATIONSTATES")
     ct = time()
     api.__rltime__ = [(ct+x) for x in range(55)]
     self.assertEqual(
         api.get_ratelimit(), api.__rltime__)