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