'#15889: get_serializer(\'nonsense\') raises a SerializerDoesNotExist'

def test_get_unknown_serializer(self):

    with self.assertRaises(SerializerDoesNotExist):
        serializers.get_serializer(u'nonsense')
    with self.assertRaises(KeyError):
        serializers.get_serializer(u'nonsense')
    with self.assertRaises(SerializerDoesNotExist) as cm:
        serializers.get_serializer(u'nonsense')
    self.assertEqual(cm.exception.args, (u'nonsense',))
