コード例 #1
0
ファイル: document_test.py プロジェクト: JoshuaWhittemore/Gap
 def test_031(self):
     """ Document classification setter - not a string """
     document = Document()
     with pytest.raises(TypeError):
         document.classification = 12
コード例 #2
0
ファイル: document_test.py プロジェクト: JoshuaWhittemore/Gap
 def test_032(self):
     """ Document overridden str() """
     document = Document()
     document.classification = "foobar"
     self.assertEqual(str(document), "foobar")
コード例 #3
0
ファイル: document_test.py プロジェクト: JoshuaWhittemore/Gap
 def test_030(self):
     """ Document classification getter/setter """
     document = Document(dir="tests")
     document.classification = "foobar"
     self.assertEqual(document.classification, "foobar")