# Path: tests/unit/_test_util.py
# LONG_NUMBER = PY2 and long(1) or 1


import unittest
from cloudant.error import CloudantArgumentError
from cloudant._common_util import python_to_couch
from tests.unit._test_util import LONG_NUMBER
        self.assertEqual(
            python_to_couch({'reduce': False}),
            {'reduce': 'false'}
        )

    def test_valid_skip(self):
        """
        Test skip translation is successful.
        """
        self.assertEqual(python_to_couch({'skip': 100}), {'skip': 100})
        # Test with long type
        self.assertEqual(python_to_couch({'skip': LONG_NUMBER}), {'skip': LONG_NUMBER})
        self.assertEqual(python_to_couch({'skip': None}), {'skip': None})

    def test_valid_stale(self):
        """
        Test stale translation is successful.
        """
        self.assertEqual(python_to_couch({'stale': 'ok'}), {'stale': 'ok'})
        self.assertEqual(
            python_to_couch({'stale': 'update_after'}),
            {'stale': 'update_after'}
        )

    def test_valid_startkey(self):
        """
        Test startkey translation is successful.
        """
        self.assertEqual(python_to_couch({'startkey': 10}), {'startkey': '10'})
        # Test with long type

# Path: tests/unit/_test_util.py
# LONG_NUMBER = PY2 and long(1) or 1


# Path: tests/unit/param_translation_tests.py
import unittest
from cloudant.error import CloudantArgumentError
from cloudant._common_util import python_to_couch
from tests.unit._test_util import LONG_NUMBER

        self.assertEqual(
            python_to_couch({'reduce': False}),
            {'reduce': 'false'}
        )

    def test_valid_skip(self):
        """
        Test skip translation is successful.
        """
        self.assertEqual(python_to_couch({'skip': 100}), {'skip': 100})
        # Test with long type
        self.assertEqual(python_to_couch({'skip': LONG_NUMBER}), {'skip': LONG_NUMBER})
        self.assertEqual(python_to_couch({'skip': None}), {'skip': None})

    def test_valid_stale(self):
        """
        Test stale translation is successful.
        """
        self.assertEqual(python_to_couch({'stale': 'ok'}), {'stale': 'ok'})
        self.assertEqual(
            python_to_couch({'stale': 'update_after'}),
            {'stale': 'update_after'}
        )

    def test_valid_startkey(self):
        """
        Test startkey translation is successful.
        """
        self.assertEqual(python_to_couch({'startkey': 10}), {'startkey': '10'})
        # Test with long type

        self.assertEqual(python_to_couch({'startkey': LONG_NUMBER}), {'startkey': str(LONG_NUMBER)})