Example #1
0
    def test_get_empty_headers(self):
        """Ensure get_headers returns the job headers."""
        from furious.async import Async

        job = Async("nonexistant")

        self.assertEqual({}, job.get_headers())
Example #2
0
    def test_get_empty_headers(self):
        """Ensure get_headers returns the job headers."""
        from furious. async import Async

        job = Async('nonexistant')

        self.assertEqual({}, job.get_headers())
Example #3
0
    def test_get_headers(self):
        """Ensure get_headers returns the job headers."""
        from furious.async import Async

        headers = {"other": "zzz", "nested": 1}
        options = {"headers": headers}

        job = Async("nonexistant", **options)

        self.assertEqual(headers, job.get_headers())
Example #4
0
    def test_get_headers(self):
        """Ensure get_headers returns the job headers."""
        from furious.async import Async

        headers = {'other': 'zzz', 'nested': 1}
        options = {'headers': headers}

        job = Async('nonexistant', **options)

        self.assertEqual(headers, job.get_headers())
Example #5
0
    def test_get_headers(self):
        """Ensure get_headers returns the job headers."""
        from furious. async import Async

        headers = {'other': 'zzz', 'nested': 1}
        options = {'headers': headers}

        job = Async('nonexistant', **options)

        self.assertEqual(headers, job.get_headers())