Exemple #1
0
 def test_single(self):
     assert inputs({'a': 'a'}) == '<input type="hidden" name="a" value="a"/>'
Exemple #2
0
    def test_multiple(self):
        rendered_string = inputs({'a': 'a', 'b': 'b'})

        assert '<input type="hidden" name="a" value="a"/>' in rendered_string
        assert '<input type="hidden" name="b" value="b"/>' in rendered_string
Exemple #3
0
 def test_empty(self):
     assert inputs({}) == ''
Exemple #4
0
    def test_multiple(self):
        rendered_string = inputs({"a": "a", "b": "b"})

        assert '<input type="hidden" name="a" value="a"/>' in rendered_string
        assert '<input type="hidden" name="b" value="b"/>' in rendered_string
Exemple #5
0
    def test_multiple(self):
        rendered_string = inputs({'a': 'a', 'b': 'b'})

        assert '<input type="hidden" name="a" value="a"/>' in rendered_string
        assert '<input type="hidden" name="b" value="b"/>' in rendered_string
Exemple #6
0
 def test_single(self):
     assert inputs({'a': 'a'}) == '<input type="hidden" name="a" value="a"/>'
Exemple #7
0
 def test_empty(self):
     assert inputs({}) == ''