from django.test import TestCase
from mock import Mock
from .middleware import RewriteNemoURLsMiddleware

class RewriteNemoURLSMiddlewareTest(TestCase):

    def setUp(self):
        self.middleware = RewriteNemoURLsMiddleware()
        self.request = Mock()
        self.response = Mock()

    def test_text_transform(self):
        self.response.streaming = False
        self.response.content="/wp-content/themes/cfpb_nemo/static.gif"
	self.assertIn("/static/nemo/static.gif", self.middleware.process_response(self.request,self.response).content)

from django.test import TestCase
from mock import Mock
from .middleware import RewriteNemoURLsMiddleware

class CartMiddlewareTest(TestCase):

    def setUp(self):
        self.middleware = RewriteNemoURLsMiddleware()
        self.request = Mock()
        self.response = Mock()

    def test_text_transform(self):
        self.response.streaming = False
        self.response.content="/wp-content/themes/cfpb_nemo/static.gif"
	self.assertIn("/static/nemo/static.gif", self.middleware.process_response(self.request,self.response).content)

--- 
+++ 
@@ -2,7 +2,7 @@
 from mock import Mock
 from .middleware import RewriteNemoURLsMiddleware
 
-class CartMiddlewareTest(TestCase):
+class RewriteNemoURLSMiddlewareTest(TestCase):
 
     def setUp(self):
         self.middleware = RewriteNemoURLsMiddleware()
Fix a harmless (but silly) cut-and-paste artifact
