示例#1
0
 def testDictToSourceWithSource(self):
     citation = 'Van Daele, K; Meganck, L. & Mortier, S. 2015. Data-driven systems and system-driven data: the story of the Flanders Heritage Inventory (1995-2015)'
     s = dict_to_source(Source(citation))
     self.assertEqual(citation, s.citation)
示例#2
0
 def testDictToSourceWithSource(self):
     citation = 'Van Daele, K; Meganck, L. & Mortier, S. 2015. Data-driven systems and system-driven data: the story of the Flanders Heritage Inventory (1995-2015)'
     s = dict_to_source(Source(citation))
     self.assertEqual(citation, s.citation)
示例#3
0
 def testDictToSourceWithDictWithMarkup(self):
     citation = '<strong>Van Daele, K; Meganck, L. & Mortier, S.</strong> 2015. Data-driven systems and system-driven data: the story of the Flanders Heritage Inventory (1995-2015)'
     s = dict_to_source({'citation': citation, 'markup': 'HTML'})
     self.assertEqual(citation, s.citation)
     self.assertEqual('HTML', s.markup)
示例#4
0
 def testDictToSourceWithDictWithMarkup(self):
     citation = '<strong>Van Daele, K; Meganck, L. & Mortier, S.</strong> 2015. Data-driven systems and system-driven data: the story of the Flanders Heritage Inventory (1995-2015)'
     s = dict_to_source({'citation': citation, 'markup': 'HTML'})
     self.assertEqual(citation, s.citation)
     self.assertEqual('HTML', s.markup)