Example #1
0
    def test_klass_only(self):
        args = mock.Mock(klass='class', delete=False)

        # Checking that no exceptions are raised
        rs_limits._check_arguments(args)
Example #2
0
    def test_delete_only(self):
        args = mock.Mock(klass=None, delete=True)

        # Checking that no exceptions are raised
        rs_limits._check_arguments(args)
Example #3
0
    def test_neither(self):
        args = mock.Mock(klass=None, delete=False)

        # Checking that no exceptions are raised
        rs_limits._check_arguments(args)