示例#1
0
    def test2_empty_lines(self):
        conf = """


config setup

    nat_traversal=yes
    
    
    strictcrlpolicy=yes

"""
        self.assertEqual(
            dumps(loads(conf), indent='    '), """\
config setup
    nat_traversal=yes
    strictcrlpolicy=yes
""")
示例#2
0
    def test2_empty_lines(self):
        conf = """


config setup

    nat_traversal=yes
    
    
    strictcrlpolicy=yes

"""
        self.assertEqual(
            dumps(loads(conf), indent = '    '),
            """\
config setup
    nat_traversal=yes
    strictcrlpolicy=yes
"""
        )
示例#3
0
 def test1(self):
     self.assertEqual(dumps(loads(self.strongswan_in), indent='    '),
                      self.strongswan_out)
示例#4
0
 def test1(self):
     self.assertEqual(
         dumps(loads(self.strongswan_in), indent = '    '),
         self.strongswan_out
     )