def test_with_others(self):
     context = self.mock_context('/foo?bar=1&test=2')
     out = drop_filter_from_current_url(context, 'test')
     self.assertEqual('/foo?bar=1', out)
 def test_missing(self):
     context = self.mock_context('/foo?bar=1')
     out = drop_filter_from_current_url(context, 'test')
     self.assertEqual('/foo?bar=1', out)
 def test_only(self):
     context = self.mock_context('/foo?test=1')
     out = drop_filter_from_current_url(context, 'test')
     self.assertEqual('/foo', out)
Example #4
0
 def test_with_others(self):
     context = self.mock_context('/foo?bar=1&test=2')
     out = drop_filter_from_current_url(context, 'test')
     self.assertEqual('/foo?bar=1', out)
Example #5
0
 def test_missing(self):
     context = self.mock_context('/foo?bar=1')
     out = drop_filter_from_current_url(context, 'test')
     self.assertEqual('/foo?bar=1', out)
Example #6
0
 def test_only(self):
     context = self.mock_context('/foo?test=1')
     out = drop_filter_from_current_url(context, 'test')
     self.assertEqual('/foo', out)