Example #1
0
 def test_build_template_params_named_anonymous(self):
     """_btp handles mixed named and anonymous arguments"""
     eq_({'1': 'a', 'hi': 'test'}, _btp(['hi=test', 'a']))
Example #2
0
 def test_build_template_params_numbered(self):
     """_btp handles numbered arguments"""
     eq_({'20': 'a', '10': 'test'}, _btp(['20=a', '10=test']))
Example #3
0
 def test_build_template_params_named(self):
     """_btp handles only named-arguments"""
     eq_({'a': 'b', 'hi': 'test'}, _btp(['hi=test', 'a=b']))
Example #4
0
 def test_build_template_params_named_anonymous_numbered(self):
     """_btp handles mixed named, anonymous and numbered arguments"""
     eq_({'1': 'a', 'hi': 'test', '3': 'z'}, _btp(['hi=test', 'a', '3=z']))
Example #5
0
 def test_build_template_params_anonymous(self):
     """_btp handles anonymous arguments"""
     eq_({'1': '<span>a</span>', '2': 'test'},
         _btp(['<span>a</span>', 'test']))
Example #6
0
 def test_build_template_params_numbered(self):
     """_btp handles numbered arguments"""
     eq_({"20": "a", "10": "test"}, _btp(["20=a", "10=test"]))
Example #7
0
 def test_build_template_params_named_numbered(self):
     """_btp handles mixed named and numbered arguments"""
     eq_({'10': 'a', 'hi': 'test'}, _btp(['hi=test', '10=a']))
Example #8
0
 def test_build_template_params_numbered(self):
     """_btp handles numbered arguments"""
     eq_({'20': 'a', '10': 'test'}, _btp(['20=a', '10=test']))
Example #9
0
 def test_build_template_params_named(self):
     """_btp handles only named-arguments"""
     eq_({'a': 'b', 'hi': 'test'}, _btp(['hi=test', 'a=b']))
Example #10
0
 def test_build_template_params_named_anonymous_numbered(self):
     """_btp handles mixed named, anonymous and numbered arguments"""
     eq_({"1": "a", "hi": "test", "3": "z"}, _btp(["hi=test", "a", "3=z"]))
Example #11
0
 def test_build_template_params_anonymous(self):
     """_btp handles anonymous arguments"""
     eq_({'1': '<span>a</span>', '2': 'test'},
         _btp(['<span>a</span>', 'test']))
Example #12
0
 def test_build_template_params_named_numbered(self):
     """_btp handles mixed named and numbered arguments"""
     eq_({"10": "a", "hi": "test"}, _btp(["hi=test", "10=a"]))
Example #13
0
 def test_build_template_params_named_anonymous(self):
     """_btp handles mixed named and anonymous arguments"""
     eq_({"1": "a", "hi": "test"}, _btp(["hi=test", "a"]))
Example #14
0
 def test_build_template_params_named(self):
     """_btp handles only named-arguments"""
     eq_({"a": "b", "hi": "test"}, _btp(["hi=test", "a=b"]))
Example #15
0
 def test_build_template_params_named_numbered(self):
     """_btp handles mixed named and numbered arguments"""
     eq_({'10': 'a', 'hi': 'test'}, _btp(['hi=test', '10=a']))
Example #16
0
 def test_build_template_params_named_anonymous(self):
     """_btp handles mixed named and anonymous arguments"""
     eq_({'1': 'a', 'hi': 'test'}, _btp(['hi=test', 'a']))
Example #17
0
 def test_build_template_params_named_anonymous_numbered(self):
     """_btp handles mixed named, anonymous and numbered arguments"""
     eq_({'1': 'a', 'hi': 'test', '3': 'z'}, _btp(['hi=test', 'a', '3=z']))
Example #18
0
 def test_build_template_params_anonymous(self):
     """_btp handles anonymous arguments"""
     eq_({"1": "<span>a</span>", "2": "test"}, _btp(["<span>a</span>", "test"]))