예제 #1
0
 def test_10(self):
     """TestPlotRecordSet.test_10(): value()."""
     myPrs = FileIndexer.PlotRecordSet()
     self.assertFalse(myPrs.canPlotFromInternalRecords())
     self.assertFalse(myPrs.canPlotFromExternalRecords())
     myPrs.tellFilm = 1
     myPrs.tellPres = 1
     myPrs.logPass = '******'
     self.assertTrue(myPrs)
예제 #2
0
 def test_05(self):
     """TestPlotRecordSet.test_05(): tellPip setter and getter."""
     myPrs = FileIndexer.PlotRecordSet()
     self.assertFalse(myPrs.canPlotFromInternalRecords())
     self.assertFalse(myPrs.canPlotFromExternalRecords())
     self.assertTrue(myPrs.tellPip is None)
     myPrs.tellPip = 1
     self.assertEqual(1, myPrs.tellPip)
     self.assertFalse(myPrs.canPlotFromInternalRecords())
     self.assertFalse(myPrs.canPlotFromExternalRecords())
예제 #3
0
 def test_06(self):
     """TestPlotRecordSet.test_06(): logPass setter and getter."""
     myPrs = FileIndexer.PlotRecordSet()
     self.assertFalse(myPrs.canPlotFromInternalRecords())
     self.assertFalse(myPrs.canPlotFromExternalRecords())
     self.assertTrue(myPrs.logPass is None)
     myPrs.logPass = '******'
     self.assertEqual('1', myPrs.logPass)
     self.assertFalse(myPrs.canPlotFromInternalRecords())
     self.assertTrue(myPrs.canPlotFromExternalRecords())
예제 #4
0
 def test_01(self):
     """TestPlotRecordSet.test_01(): Construction."""
     myPrs = FileIndexer.PlotRecordSet()
     self.assertFalse(myPrs.canPlotFromInternalRecords())
     self.assertFalse(myPrs.canPlotFromExternalRecords())