예제 #1
0
 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)
예제 #2
0
 def test_document_binding_is_valid(self):
     doc = Document(self.document, u'files')
     self.assertTrue(doc.binding().validateBinding())
예제 #3
0
 def test_document_binding_is_valid(self):
     doc = Document(self.document, u'files')
     self.assertTrue(doc.binding().validateBinding())