Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
HeppyCore
python
statistics
value_test.py
Go to the documentation of this file.
1
import
unittest
2
import
math
3
from
value
import
Value
4
5
class
ValueTestCase
(unittest.TestCase):
6
7
def
test
(self):
8
val1 =
Value
(1.,0.02)
9
val2 =
Value
(2.,0.02)
10
val3 = val1 / val2
11
# should test the value and the error after each operation.
12
# I'll write the tests when I have some time
13
14
def
test_equal
(self):
15
val1 =
Value
(1.,0.02)
16
val2 =
Value
(1.,0.02)
17
self.assertEqual(val1, val2)
18
19
if
__name__ ==
'__main__'
:
20
unittest.main()
value.Value
Definition:
value.py:7
value_test.ValueTestCase
Definition:
value_test.py:5
value_test.ValueTestCase.test_equal
def test_equal
Definition:
value_test.py:14
value_test.ValueTestCase.test
def test
Definition:
value_test.py:7
Generated for CMSSW Reference Manual by
1.8.5