from django.test import TestCase

from converters import converter_options, CONVERTER_CHOICES
from rest_api.serializers import ConverterOptionsSerializer


class OutPutFormatTest(TestCase):
    def test_all_attributes_are_present_in_serializer(self):
        serialized = ConverterOptionsSerializer(converter_options)
        self.assertDictEqual(serialized.data, converter_options.__dict__)

    def test_all_attributes_are_present_in_choices_dict(self):
        self.assertEqual(converter_options.__dict__.keys(), CONVERTER_CHOICES.keys())

from django.test import TestCase

from converters import converter_options, CONVERTER_CHOICES
from rest_api.serializers import ConverterOptionsSerializer


class OutputFormatTest(TestCase):
    def test_all_attributes_are_present_in_serializer(self):
        serialized = ConverterOptionsSerializer(converter_options)
        self.assertDictEqual(serialized.data, converter_options.__dict__)

    def test_all_attributes_are_present_in_choices_dict(self):
        self.assertEqual(converter_options.__dict__.keys(), CONVERTER_CHOICES.keys())

rename class (treat 'output' as a single word)