testBinary.py 223 Bytes
Newer Older
Vladimir Paun's avatar
test.py  
Vladimir Paun committed
1
import unittest
Vladimir Paun's avatar
Vladimir Paun committed
2
3
4
5
6
from binary import Binary

class Test(unittest.TestCase):
    def setUp(self):
        self.binary = Binary(6)
Vladimir Paun's avatar
Vladimir Paun committed
7
8

    def test_binary_init_int(self):
Vladimir Paun's avatar
Vladimir Paun committed
9
10
        binary = Binary(6)
        assert int(binary) == 6