示例#1
0
 def test_strip_quotes2(self):
     parser = BibTexParser()
     result = parser._strip_quotes('before "remove" after')
     expected = 'before "remove" after'
     self.assertEqual(result, expected)
示例#2
0
 def test_strip_quotes_n(self):
     parser = BibTexParser()
     result = parser._strip_quotes('"before remove after"\n')
     expected = 'before remove after'
     self.assertEqual(result, expected)
 def test_strip_quotes2(self):
     parser = BibTexParser()
     result = parser._strip_quotes('before "remove" after')
     expected = 'before "remove" after'
     self.assertEqual(result, expected)
 def test_strip_quotes_n(self):
     parser = BibTexParser()
     result = parser._strip_quotes('"before remove after"\n')
     expected = 'before remove after'
     self.assertEqual(result, expected)
示例#5
0
 def test_strip_quotes2(self):
     with open(self.bibfile, 'r') as bibfile:
         bib = BibTexParser(bibfile.read())
         result = bib._strip_quotes('before "remove" after')
         expected = 'before "remove" after'
         self.assertEqual(result, expected)
示例#6
0
 def test_strip_quotes2(self):
     with open(self.bibfile, 'r') as bibfile:
         bib = BibTexParser(bibfile.read())
         result = bib._strip_quotes('before "remove" after')
         expected = 'before "remove" after'
         self.assertEqual(result, expected)