Beispiel #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"]))
Beispiel #2
0
 def test_build_template_params_numbered(self):
     """_btp handles numbered arguments"""
     eq_({"20": "a", "10": "test"}, _btp(["20=a", "10=test"]))
Beispiel #3
0
 def test_build_template_params_named(self):
     """_btp handles only named-arguments"""
     eq_({"a": "b", "hi": "test"}, _btp(["hi=test", "a=b"]))
Beispiel #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']))
Beispiel #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"]))
 def test_build_template_params_numbered(self):
     """_btp handles numbered arguments"""
     eq_({'20': 'a', '10': 'test'}, _btp(['20=a', '10=test']))
Beispiel #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']))
Beispiel #8
0
 def test_build_template_params_numbered(self):
     """_btp handles numbered arguments"""
     eq_({'20': 'a', '10': 'test'}, _btp(['20=a', '10=test']))
Beispiel #9
0
 def test_build_template_params_named(self):
     """_btp handles only named-arguments"""
     eq_({'a': 'b', 'hi': 'test'}, _btp(['hi=test', 'a=b']))
Beispiel #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']))
Beispiel #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']))
Beispiel #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']))
Beispiel #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']))
Beispiel #14
0
 def test_build_template_params_named(self):
     """_btp handles only named-arguments"""
     eq_({'a': 'b', 'hi': 'test'}, _btp(['hi=test', 'a=b']))
Beispiel #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"]))
Beispiel #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']))
Beispiel #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"]))
Beispiel #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']))