示例#1
0
 def test_metadata_contains_foreign_reference(self):
     doc = create(Builder("document").having(foreign_reference=u'Ref 123'))
     self.assertEqual(metadata(doc)(), 'Client1 / 1 Ref 123')
示例#2
0
 def test_metadata_contains_description(self):
     doc = create(Builder("document").having(description=u'Foo bar baz.'))
     self.assertEqual(metadata(doc)(), 'Client1 / 1 Foo bar baz.')
示例#3
0
 def test_metadata_contains_keywords(self):
     doc = create(Builder("document").having(keywords=(u'Foo', u'Bar')))
     self.assertEqual(metadata(doc)(), 'Client1 / 1 Foo Bar')
示例#4
0
 def test_metadata_contains_reference_number(self):
     doc = create(Builder("document"))
     self.assertEqual(metadata(doc)(), 'Client1 / 1')
示例#5
0
 def test_metadata_contains_foreign_reference(self):
     doc = create(Builder("document").having(foreign_reference=u'Ref 123'))
     self.assertEqual(metadata(doc)(), 'Client1 / 1 Ref 123')
示例#6
0
 def test_metadata_contains_keywords(self):
     doc = create(Builder("document").having(keywords=(u'Foo', u'Bar')))
     self.assertEqual(metadata(doc)(), 'Client1 / 1 Foo Bar')
示例#7
0
 def test_metadata_contains_description(self):
     doc = create(Builder("document").having(description=u'Foo bar baz.'))
     self.assertEqual(metadata(doc)(), 'Client1 / 1 Foo bar baz.')
示例#8
0
 def test_metadata_contains_reference_number(self):
     doc = create(Builder("document"))
     self.assertEqual(metadata(doc)(), 'Client1 / 1')