def test100_970ShouldRaiseExceptionOnNonIntegerN(self):
     self.setN(2.5)
     self.setT(self.nominalT)
     self.setTails(1)
     resultDictionary = prob(self.inputDictionary)
     self.assertIn(self.errorKey, resultDictionary)
     self.assertIn(self.errorValue, resultDictionary[self.errorKey])
 def test100_940ShouldRaiseExceptionOnInvalidTails(self):
     self.setTails(0)
     self.setT(self.nominalT)
     self.setN(self.nominalN)
     resultDictionary = prob(self.inputDictionary)
     self.assertIn(self.errorKey, resultDictionary)
     self.assertIn(self.errorValue, resultDictionary[self.errorKey])
 def test100_960ShouldRaiseExceptionOnOutOfBoundN(self):
     self.setN(0)
     self.setT(self.nominalT)
     self.setTails(1)
     resultDictionary = prob(self.inputDictionary)
     self.assertIn(self.errorKey, resultDictionary)
     self.assertIn(self.errorValue, resultDictionary[self.errorKey])
 def test100_930ShouldRaiseExceptionOnNonNumericT(self):
     self.setT("abc")
     self.setN(self.nominalN)
     self.setTails(self.nominalTails)
     resultDictionary = prob(self.inputDictionary)
     self.assertIn(self.errorKey, resultDictionary)
     self.assertIn(self.errorValue, resultDictionary[self.errorKey])
 def test100_050ShouldCalculateHighNLowT1TailEdgeCase(self):
     self.setT(0.2567)
     self.setN(20)
     self.setTails(1)
     resultDictionary = prob(self.inputDictionary)
     self.assertAlmostEqual(resultDictionary[self.solutionKey], 0.600, 3)
 def test100_040ShouldCalculateLowNLowT2TailEdgeCase(self):
     self.setT(0.2767)
     self.setN(3)
     self.setTails(2)
     resultDictionary = prob(self.inputDictionary)
     self.assertAlmostEqual(resultDictionary[self.solutionKey], 0.200, 3)
 def test100_020ShouldCalculateNominalCase2Tail(self):
     self.setT(1.8946)
     self.setN(7)
     self.setTails(2)
     resultDictionary = prob(self.inputDictionary)
     self.assertAlmostEqual(resultDictionary[self.solutionKey], 0.900, 3)
 def test100_950ShouldRaiseExceptionOnMissingN(self):
     self.setT(self.nominalT)
     self.setTails(1)
     resultDictionary = prob(self.inputDictionary)
     self.assertIn(self.errorKey, resultDictionary)
     self.assertIn(self.errorValue, resultDictionary[self.errorKey])
 def test100_110ShouldCalculateWithDefaultTails(self):
     self.setT(1.8946)
     self.setN(7)
     resultDictionary = prob(self.inputDictionary)
     self.assertAlmostEqual(resultDictionary[self.solutionKey], 0.950, 3)
 def test100_100ShouldCalculateHighHighT2TailEdgeCase(self):
     self.setT(2.8453)
     self.setN(20)
     self.setTails(2)
     resultDictionary = prob(self.inputDictionary)
     self.assertAlmostEqual(resultDictionary[self.solutionKey], 0.990, 3)
 def test100_080ShouldCalculateLowNHighT2EdgeCase(self):
     self.setT(5.8409)
     self.setN(3)
     self.setTails(2)
     resultDictionary = prob(self.inputDictionary)
     self.assertAlmostEqual(resultDictionary[self.solutionKey], 0.990, 3)