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')
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.')
def test_metadata_contains_keywords(self): doc = create(Builder("document").having(keywords=(u'Foo', u'Bar'))) self.assertEqual(metadata(doc)(), 'Client1 / 1 Foo Bar')
def test_metadata_contains_reference_number(self): doc = create(Builder("document")) self.assertEqual(metadata(doc)(), 'Client1 / 1')