Esempio n. 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')
Esempio n. 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.')
Esempio n. 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')
Esempio n. 4
0
 def test_metadata_contains_reference_number(self):
     doc = create(Builder("document"))
     self.assertEqual(metadata(doc)(), 'Client1 / 1')
Esempio n. 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')
Esempio n. 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')
Esempio n. 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.')
Esempio n. 8
0
 def test_metadata_contains_reference_number(self):
     doc = create(Builder("document"))
     self.assertEqual(metadata(doc)(), 'Client1 / 1')