~ubuntu-branches/debian/sid/lexicon/sid

« back to all changes in this revision

Viewing changes to tests/providers/test_easydns.py

  • Committer: Package Import Robot
  • Author(s): Ana Custura
  • Date: 2018-03-02 22:36:08 UTC
  • Revision ID: package-import@ubuntu.com-20180302223608-4e2sghral3uifgq7
Tags: upstream-2.1.21
ImportĀ upstreamĀ versionĀ 2.1.21

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test for one implementation of the interface
 
2
from lexicon.providers.easydns import Provider
 
3
from integration_tests import IntegrationTests
 
4
from unittest import TestCase
 
5
import pytest
 
6
 
 
7
# Hook into testing framework by inheriting unittest.TestCase and reuse
 
8
# the tests which *each and every* implementation of the interface must
 
9
# pass, by inheritance from define_tests.TheTests
 
10
class EasyDnsProviderTests(TestCase, IntegrationTests):
 
11
 
 
12
    Provider = Provider
 
13
    provider_name = 'easydns'
 
14
    domain = 'easydnstemp.com'
 
15
 
 
16
 
 
17
    def _test_engine_overrides(self):
 
18
        overrides = super(EasyDnsProviderTests, self)._test_engine_overrides()
 
19
        overrides.update({'api_endpoint': 'http://sandbox.rest.easydns.net'})
 
20
        return overrides
 
21
 
 
22
    def _filter_headers(self):
 
23
        return ['Authorization']
 
24
    def _filter_query_parameters(self):
 
25
        return ['_key', '_user']
 
26
 
 
27
    # TODO: this should be enabled
 
28
    @pytest.mark.skip(reason="regenerating auth keys required")
 
29
    def test_Provider_when_calling_update_record_should_modify_record_name_specified(self):
 
30
        return
 
 
b'\\ No newline at end of file'