def test_document_path_consists_of_base_path_and_filename(self): base_path = u'myfiles/folder' doc = Document(self.document, base_path) self.assertEqual(base_path + '/' + self.document.file.filename, doc.path)
def test_document_binding_is_valid(self): doc = Document(self.document, u'files') self.assertTrue(doc.binding().validateBinding())