import unittest
import slumber
import slumber.serialize

from slumber_serializers import CsvSerializer


class SerializerTestCase(unittest.TestCase):
    def setUp(self):
        self.data = [
            [
                "foo", "bar"
            ]
        ]

    def test_csv_get_serializer(self):
        s = slumber.serialize.Serializer(serializers=[CsvSerializer()])

        serializer = None
        for content_type in [
            "text/csv",
        ]:
            serializer = s.get_serializer(content_type=content_type)
            self.assertEqual(type(serializer), CsvSerializer,
                             "content_type %s should produce a CsvSerializer")

        result = serializer.dumps(self.data)
        self.assertEqual(result, b"foo,bar\r\n")
        self.assertEqual(self.data, list(serializer.loads(result)))

@@ -104,16 +104,19 @@
 %0A%0Aclass 
+Csv
 Serializ
@@ -146,16 +146,16 @@
 tCase):%0A
-
     def 
@@ -274,20 +274,16 @@
 est_csv_
-get_
 serializ
@@ -346,16 +346,196 @@
 lizers=%5B
+slumber.serialize.JsonSerializer(),%0A                                                      slumber.serialize.YamlSerializer(),%0A                                                      
 CsvSeria
@@ -767,16 +767,16 @@
 alizer,%0A
-
         
@@ -844,16 +844,31 @@
 ializer%22
+ %25 content_type
 )%0A%0A     

fix tests