from seleniumbase import BaseCase
from seleniumbase.common import decorators


class MyTestClass(BaseCase):

    @decorators.rate_limited(3.5)  # The arg is max calls per second
    def print_item(self, item):
        print(item)

    def test_rate_limited_printing(self):
        print("\nRunning rate-limited print test:")
        for item in xrange(1, 11):
            self.print_item(item)


import unittest
from seleniumbase.common import decorators


class MyTestClass(unittest.TestCase):

    @decorators.rate_limited(3.5)  # The arg is max calls per second
    def print_item(self, item):
        print(item)

    def test_rate_limited_printing(self):
        print("\nRunning rate-limited print test:")
        for item in xrange(1, 11):
            self.print_item(item)

Update the rate_limited decorator test
Update the rate_limited decorator test

- from seleniumbase import BaseCase
+ 
+ import unittest
  from seleniumbase.common import decorators
  
  
- class MyTestClass(BaseCase):
+ class MyTestClass(unittest.TestCase):
  
      @decorators.rate_limited(3.5)  # The arg is max calls per second
      def print_item(self, item):
          print(item)
  
      def test_rate_limited_printing(self):
          print("\nRunning rate-limited print test:")
          for item in xrange(1, 11):
              self.print_item(item)
  
Update the rate_limited decorator test
## Code Before:
from seleniumbase import BaseCase
from seleniumbase.common import decorators


class MyTestClass(BaseCase):

    @decorators.rate_limited(3.5)  # The arg is max calls per second
    def print_item(self, item):
        print(item)

    def test_rate_limited_printing(self):
        print("\nRunning rate-limited print test:")
        for item in xrange(1, 11):
            self.print_item(item)

## Instruction:
Update the rate_limited decorator test
## Code After:

import unittest
from seleniumbase.common import decorators


class MyTestClass(unittest.TestCase):

    @decorators.rate_limited(3.5)  # The arg is max calls per second
    def print_item(self, item):
        print(item)

    def test_rate_limited_printing(self):
        print("\nRunning rate-limited print test:")
        for item in xrange(1, 11):
            self.print_item(item)
