コード例 #1
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)
コード例 #2
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)
コード例 #3
0
 def test_only(self):
     context = self.mock_context('/foo?test=1')
     out = drop_filter_from_current_url(context, 'test')
     self.assertEqual('/foo', out)
コード例 #4
0
ファイル: test_helpers.py プロジェクト: willkg/browsercompat
 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)
コード例 #5
0
ファイル: test_helpers.py プロジェクト: willkg/browsercompat
 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)
コード例 #6
0
ファイル: test_helpers.py プロジェクト: willkg/browsercompat
 def test_only(self):
     context = self.mock_context('/foo?test=1')
     out = drop_filter_from_current_url(context, 'test')
     self.assertEqual('/foo', out)