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