Exemple #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
""")
    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
"""
        )
Exemple #3
0
 def test1(self):
     self.assertEqual(dumps(loads(self.strongswan_in), indent='    '),
                      self.strongswan_out)
 def test1(self):
     self.assertEqual(
         dumps(loads(self.strongswan_in), indent = '    '),
         self.strongswan_out
     )