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