def test_doc_with_author(self): dickens_doc = StyloDocument(self.path, author="Charles Dickens") self.assertEqual(dickens_doc.author, "Charles Dickens")
def setUp(self): self.path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'test/oliver_twist_fixture.txt') self.doc = StyloDocument(self.path)
def test_doc_has_author(self): unknown_doc = StyloDocument(self.path) self.assertEqual(unknown_doc.author, "Unknown")