from lexicon.providers.dnsimple import Provider
from integration_tests import IntegrationTests
from unittest import TestCase

# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance from define_tests.TheTests
class DnsimpleProviderTests(TestCase, IntegrationTests):

    Provider = Provider
    provider_name = 'dnsimple'
    domain = 'wopr.tech'
    provider_opts = {'api_endpoint': 'https://api.sandbox.dnsimple.com/v2'}
    def _filter_headers(self):
        return ['Authorization','set-cookie']

from lexicon.providers.dnsimple import Provider
from integration_tests import IntegrationTests
from unittest import TestCase

# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance from define_tests.TheTests
class DnsimpleProviderTests(TestCase, IntegrationTests):

    Provider = Provider
    provider_name = 'dnsimple'
    domain = 'wopr.tech'
    provider_opts = {'api_endpoint': 'https://api.sandbox.dnsimple.com/v2'}
    def _filter_headers(self):
        return ['Authorization','set-cookie','X-Dnsimple-OTP']

Add OTP to test filters
Add OTP to test filters

  from lexicon.providers.dnsimple import Provider
  from integration_tests import IntegrationTests
  from unittest import TestCase
  
  # Hook into testing framework by inheriting unittest.TestCase and reuse
  # the tests which *each and every* implementation of the interface must
  # pass, by inheritance from define_tests.TheTests
  class DnsimpleProviderTests(TestCase, IntegrationTests):
  
      Provider = Provider
      provider_name = 'dnsimple'
      domain = 'wopr.tech'
      provider_opts = {'api_endpoint': 'https://api.sandbox.dnsimple.com/v2'}
      def _filter_headers(self):
-         return ['Authorization','set-cookie']
+         return ['Authorization','set-cookie','X-Dnsimple-OTP']
  
Add OTP to test filters
## Code Before:
from lexicon.providers.dnsimple import Provider
from integration_tests import IntegrationTests
from unittest import TestCase

# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance from define_tests.TheTests
class DnsimpleProviderTests(TestCase, IntegrationTests):

    Provider = Provider
    provider_name = 'dnsimple'
    domain = 'wopr.tech'
    provider_opts = {'api_endpoint': 'https://api.sandbox.dnsimple.com/v2'}
    def _filter_headers(self):
        return ['Authorization','set-cookie']

## Instruction:
Add OTP to test filters
## Code After:
from lexicon.providers.dnsimple import Provider
from integration_tests import IntegrationTests
from unittest import TestCase

# Hook into testing framework by inheriting unittest.TestCase and reuse
# the tests which *each and every* implementation of the interface must
# pass, by inheritance from define_tests.TheTests
class DnsimpleProviderTests(TestCase, IntegrationTests):

    Provider = Provider
    provider_name = 'dnsimple'
    domain = 'wopr.tech'
    provider_opts = {'api_endpoint': 'https://api.sandbox.dnsimple.com/v2'}
    def _filter_headers(self):
        return ['Authorization','set-cookie','X-Dnsimple-OTP']
