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