Esempio n. 1
0
 def test_from_ints(self):
     self.assertEqual(BitList.from_ints(1, 1, 0, 0), BitList('1100'))
Esempio n. 2
0
 def test_from_ints_error(self):
     with self.assertRaises(ValueError):
         BitList.from_ints(1, 2, 3, 4)