Exemplo n.º 1
0
 def test_single(self):
     assert inputs({'a': 'a'}) == '<input type="hidden" name="a" value="a"/>'
Exemplo n.º 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
Exemplo n.º 3
0
 def test_empty(self):
     assert inputs({}) == ''
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 6
0
 def test_single(self):
     assert inputs({'a': 'a'}) == '<input type="hidden" name="a" value="a"/>'
Exemplo n.º 7
0
 def test_empty(self):
     assert inputs({}) == ''