Exemplo n.º 1
0
 def test_normal_line(self):
     self.assertDictContainsSubset({"normal": "line"},
                                   read_dict_from_file(file))
Exemplo n.º 2
0
 def test_blank_key_2_line(self):
     self.assertDictContainsSubset({"": "2nd blank key"},
                                   read_dict_from_file(file))
Exemplo n.º 3
0
 def test_too_many_semicolons_line(self):
     self.assertDictContainsSubset({"too": "many"},
                                   read_dict_from_file(file))
Exemplo n.º 4
0
 def test_backslash_line(self):
     self.assertDictContainsSubset({"back\slash": "slashed"},
                                   read_dict_from_file(file))
Exemplo n.º 5
0
 def test_semicolon_line(self):
     self.assertDictContainsSubset({"semicolon:;asd": "value"},
                                   read_dict_from_file(file))