Пример #1
0
 def test_single(self):
     assert inputs({'a': 'a'}) == '<input type="hidden" name="a" value="a"/>'
Пример #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
Пример #3
0
 def test_empty(self):
     assert inputs({}) == ''
Пример #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
Пример #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
Пример #6
0
 def test_single(self):
     assert inputs({'a': 'a'}) == '<input type="hidden" name="a" value="a"/>'
Пример #7
0
 def test_empty(self):
     assert inputs({}) == ''